1
0
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:
Jason McBrayer 2019-01-27 22:50:11 -05:00
parent 5072defbbd
commit 856b502cbf

View File

@ -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,