From 9becbb24d49da4efa163048e6716d3e24d0f01df Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 4 Dec 2022 21:30:18 -0700 Subject: Fix post tests, don't reply to self --- activities/views/compose.py | 1 + 1 file changed, 1 insertion(+) (limited to 'activities') diff --git a/activities/views/compose.py b/activities/views/compose.py index b4ddcf5..583d6d3 100644 --- a/activities/views/compose.py +++ b/activities/views/compose.py @@ -87,6 +87,7 @@ class Compose(FormView): # Build a set of mentions for the content to start as mentioned = {self.reply_to.author} mentioned.update(self.reply_to.mentions.all()) + mentioned.discard(self.request.identity) initial["text"] = "".join( f"@{identity.handle} " for identity in mentioned ) -- cgit v1.2.3