Added templates for toots and persons

This commit is contained in:
2022-11-08 12:19:05 -06:00
parent 12046c1f56
commit 02b8330ca0
2 changed files with 110 additions and 1 deletions

View File

@@ -8,4 +8,13 @@ class HTMLFilter(HTMLParser):
def html_filter(data):
f = HTMLFilter()
f.feed(data)
return f.text
return f.text
def find_item(item, listItems):
for i in range(0, len(listItems)):
if listItems[i].id == item.id:
return i
# Check also retweets.
if item.reblog != None and item.reblog.id == listItems[i].id:
return i
return None