summaryrefslogtreecommitdiffstats
path: root/activities/models
diff options
context:
space:
mode:
Diffstat (limited to 'activities/models')
-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]