commit 48a758d45e42a163f0295f93b2dc5a8b9d2e0ea4
parent 7d68f883ea8e24832d3d4f7591ccef9693c39c87
Author: St John Karp <stjohn@fuzzjunket.com>
Date: Sat, 25 Aug 2018 10:01:44 -0700
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.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/resources/views/show_status.blade.php b/resources/views/show_status.blade.php
@@ -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'] }}" />