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 + " "
|
initial_text = '@' + toot.account.acct + " "
|
||||||
else:
|
else:
|
||||||
initial_text = ""
|
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 + " ")
|
initial_text +=('@' + mention.acct + " ")
|
||||||
form = PostForm(initial={'status': initial_text,
|
form = PostForm(initial={'status': initial_text,
|
||||||
'visibility': toot.visibility,
|
'visibility': toot.visibility,
|
||||||
|
|
Loading…
Reference in New Issue