Fix/tweak get_mentions

litepub
Thomas Sileo 2019-08-18 10:24:23 +02:00
rodzic bad5a79314
commit 65a391255c
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -887,6 +887,10 @@ class Note(BaseActivity):
mentions = []
for tag in self.tag:
# Some AP implemention return "type"less tag for links
if "type" not in tag:
continue
if _has_type(tag["type"], ActivityType.MENTION):
mentions.append(Mention(**tag))