From f892c0c4ceefcaacb3c586de96e8f4a8430ee840 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 11 Dec 2022 13:40:48 -0700 Subject: [PATCH] Fix mentions of missing identities --- activities/models/post.py | 1 + 1 file changed, 1 insertion(+) 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]