Fix mentions of missing identities

This commit is contained in:
Andrew Godwin 2022-12-11 13:40:48 -07:00
parent d5a6cbedd3
commit f892c0c4ce

View file

@ -804,6 +804,7 @@ class Post(StatorModel):
"acct": mention.handle, "acct": mention.handle,
} }
for mention in self.mentions.all() for mention in self.mentions.all()
if mention.username
], ],
"tags": ( "tags": (
[{"name": tag, "url": "/tag/{tag}/"} for tag in self.hashtags] [{"name": tag, "url": "/tag/{tag}/"} for tag in self.hashtags]