mirror of https://git.stjo.hn/planiverse
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.
This commit is contained in:
parent
6fa2c955fc
commit
52f0cf1fe7
|
@ -18,6 +18,12 @@
|
||||||
<form method="post" action="{{ route('post_status') }}">
|
<form method="post" action="{{ route('post_status') }}">
|
||||||
<input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
|
<input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
|
||||||
<textarea rows="4" name="status" placeholder="Status" required autofocus></textarea>
|
<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" />
|
<input type="submit" value="Post" />
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -27,6 +27,12 @@
|
||||||
value="{{ $status['spoiler_text'] }}"
|
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>
|
<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="submit" value="Post" />
|
||||||
<input type="hidden" name="in_reply_to_id" value="{{ $status['id'] }}" />
|
<input type="hidden" name="in_reply_to_id" value="{{ $status['id'] }}" />
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
|
|
Loading…
Reference in New Issue