summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-11 13:40:48 -0700
committerAndrew Godwin2022-12-12 11:56:49 -0700
commitf892c0c4ceefcaacb3c586de96e8f4a8430ee840 (patch)
tree1edc4d3014c96e40240f9cc2d08025e3317a1cee
parentd5a6cbedd3e056e8b9761829d5df46395a9555e1 (diff)
downloadtakahe-f892c0c4ceefcaacb3c586de96e8f4a8430ee840.tar.gz
takahe-f892c0c4ceefcaacb3c586de96e8f4a8430ee840.tar.bz2
takahe-f892c0c4ceefcaacb3c586de96e8f4a8430ee840.zip
Fix mentions of missing identities
-rw-r--r--activities/models/post.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activities/models/post.py b/activities/models/post.py
index 8c2ce13..da5a98b 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -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]