mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2025-01-10 22:14:12 +01:00
Make replies inherit visibility and spoiler text from parent
This commit is contained in:
parent
511f5db546
commit
ae7362903a
@ -186,8 +186,10 @@ def reply(request, id):
|
||||
context = mastodon.status_context(id)
|
||||
initial_text = '@' + toot.account.acct + " "
|
||||
for mention in toot.mentions:
|
||||
initial_text.append('@' + mention.acct + " ")
|
||||
form = PostForm({'status': initial_text})
|
||||
initial_text +=('@' + mention.acct + " ")
|
||||
form = PostForm({'status': initial_text,
|
||||
'visibility': toot.visibility,
|
||||
'spoiler_text': toot.spoiler_text})
|
||||
return render(request, 'main/reply.html',
|
||||
{'context': context, 'toot': toot, 'form': form, 'reply':True,
|
||||
'fullbrutalism': fullbrutalism_p(request)})
|
||||
|
Loading…
Reference in New Issue
Block a user