summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-04 21:30:18 -0700
committerAndrew Godwin2022-12-04 21:30:18 -0700
commit9becbb24d49da4efa163048e6716d3e24d0f01df (patch)
tree7effa4cb130c2ad3f430a0fcd454176b388d8139 /activities
parent107c3d6cf8eaffedc6aee8057903a62f36346fb9 (diff)
downloadtakahe-9becbb24d49da4efa163048e6716d3e24d0f01df.tar.gz
takahe-9becbb24d49da4efa163048e6716d3e24d0f01df.tar.bz2
takahe-9becbb24d49da4efa163048e6716d3e24d0f01df.zip
Fix post tests, don't reply to self
Diffstat (limited to 'activities')
-rw-r--r--activities/views/compose.py1
1 files changed, 1 insertions, 0 deletions
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
)