mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2024-12-29 00:59:53 +01:00
Don't include self-mention when replying on a thread you're in.
This commit is contained in:
parent
dd8eb95a42
commit
aa763cc1d0
@ -313,8 +313,9 @@ def reply(request, id):
|
||||
toot = mastodon.status(id)
|
||||
context = mastodon.status_context(id)
|
||||
initial_text = '@' + toot.account.acct + " "
|
||||
for mention in toot.mentions:
|
||||
for mention in [x for x in toot.mentions if x.acct != request.session['user'].acct]:
|
||||
initial_text +=('@' + mention.acct + " ")
|
||||
initial_text += "\n"
|
||||
form = PostForm({'status': initial_text,
|
||||
'visibility': toot.visibility,
|
||||
'spoiler_text': toot.spoiler_text})
|
||||
|
Loading…
Reference in New Issue
Block a user