mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -05: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