Don't strip out content warnings in replies

By default include the original spoiler text in replies
so as not to accidentally strip out content warnings.
This commit is contained in:
St John Karp 2018-08-25 10:01:44 -07:00
parent 7d68f883ea
commit 48a758d45e
1 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,12 @@
@if ($logged_in)
<form method="post" action="/timeline/home">
<input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
<input
type="text"
name="spoiler_text"
placeholder="Spoiler/Warning"
value="{{ $status['spoiler_text'] }}"
/>
<textarea rows="4" name="status" placeholder="Reply" required autofocus>{{ $status['account']['acct'] }} @foreach ($status['mentions'] as $mention){{ $mention['acct'] }} @endforeach</textarea>
<input type="submit" value="Post" />
<input type="hidden" name="in_reply_to_id" value="{{ $status['id'] }}" />