planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.mulligrubs.me/planiverse
Log | Files | Refs | README | LICENSE

commit cc6a68d21e589af07a243672a79bd3afaf376355
parent 6c90149aa8a1e56481203d8a0dbcb151e70b698c
Author: St John Karp <contact@stjo.hn>
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:
Mresources/views/show_status.blade.php | 7++++++-
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'] }}" />