mirror of https://gitlab.com/brutaldon/brutaldon
Work harder to not mention yourself.
This commit is contained in:
parent
283996396c
commit
2ce118080d
|
@ -338,7 +338,10 @@ def reply(request, id):
|
||||||
mastodon = get_mastodon(request)
|
mastodon = get_mastodon(request)
|
||||||
toot = mastodon.status(id)
|
toot = mastodon.status(id)
|
||||||
context = mastodon.status_context(id)
|
context = mastodon.status_context(id)
|
||||||
|
if toot.account.acct != request.session['user'].acct:
|
||||||
initial_text = '@' + toot.account.acct + " "
|
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]:
|
||||||
initial_text +=('@' + mention.acct + " ")
|
initial_text +=('@' + mention.acct + " ")
|
||||||
initial_text += "\n"
|
initial_text += "\n"
|
||||||
|
|
Loading…
Reference in New Issue