kopia lustrzana https://github.com/tsileo/little-boxes
Fix/tweak get_mentions
rodzic
bad5a79314
commit
65a391255c
|
@ -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))
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue