mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Don't add blank line to replies with no mentions (self-replies)
This commit is contained in:
@ -344,6 +344,7 @@ def reply(request, id):
|
||||
initial_text = ""
|
||||
for mention in [x for x in toot.mentions if x.acct != request.session['user'].acct]:
|
||||
initial_text +=('@' + mention.acct + " ")
|
||||
if initial_text != "":
|
||||
initial_text += "\n"
|
||||
form = PostForm({'status': initial_text,
|
||||
'visibility': toot.visibility,
|
||||
|
Reference in New Issue
Block a user