Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Fix an issue with duplicate mentions in replies on Pleroma
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcbrayer committed Jan 28, 2019
1 parent 5072def commit 856b502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brutaldon/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 856b502

Please sign in to comment.