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,
}
for mention in self.mentions.all()
if mention.username
],
"tags": (
[{"name": tag, "url": "/tag/{tag}/"} for tag in self.hashtags]