planiverse

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

commit 52f0cf1fe7c92e4f1f8680796325252280ee1707
parent 6fa2c955fcf67b160ed65198e8919084d1f81307
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Mon,  8 Oct 2018 07:03:46 -0700

Set visibility on new statuses

Allow setting the visibility when posting a status. For replies
this should default to the same visibility as the original.

Diffstat:
Mresources/views/home_timeline.blade.php | 6++++++
Mresources/views/show_status.blade.php | 6++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/resources/views/home_timeline.blade.php b/resources/views/home_timeline.blade.php @@ -18,6 +18,12 @@ <form method="post" action="{{ route('post_status') }}"> <input type="text" name="spoiler_text" placeholder="Spoiler/Warning" /> <textarea rows="4" name="status" placeholder="Status" required autofocus></textarea> + <select name="visibility"> + <option value="public">Public</option> + <option value="unlisted">Unlisted</option> + <option value="private">Private</option> + <option value="direct">Direct</option> + </select> <input type="submit" value="Post" /> {{ csrf_field() }} </form> diff --git a/resources/views/show_status.blade.php b/resources/views/show_status.blade.php @@ -27,6 +27,12 @@ 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> + <select name="visibility"> + <option value="public" @if ($status['visibility'] === 'public') selected @endif>Public</option> + <option value="unlisted" @if ($status['visibility'] === 'unlisted') selected @endif>Unlisted</option> + <option value="private" @if ($status['visibility'] === 'private') selected @endif>Private</option> + <option value="direct" @if ($status['visibility'] === 'direct') selected @endif>Direct</option> + </select> <input type="submit" value="Post" /> <input type="hidden" name="in_reply_to_id" value="{{ $status['id'] }}" /> {{ csrf_field() }}