mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-11-02 16:37:19 -04:00
Fix an issue with duplicate mentions in replies on Pleroma
This commit is contained in:
parent
5072defbbd
commit
856b502cbf
@ -607,7 +607,9 @@ def reply(request, id):
|
||||
initial_text = '@' + toot.account.acct + " "
|
||||
else:
|
||||
initial_text = ""
|
||||
for mention in [x for x in toot.mentions if x.acct != request.session['user'].acct]:
|
||||
for mention in [x for x in toot.mentions
|
||||
if x.acct != request.session['user'].acct and
|
||||
x.acct != toot.account.acct]:
|
||||
initial_text +=('@' + mention.acct + " ")
|
||||
form = PostForm(initial={'status': initial_text,
|
||||
'visibility': toot.visibility,
|
||||
|
Loading…
Reference in New Issue
Block a user