mirror of https://git.stjo.hn/planiverse
Prepopulate mentions in replies
When posting a reply, pre-populate the account to which you're replying, plus any mentions.
This commit is contained in:
parent
79800b3cc9
commit
7d68f883ea
|
@ -21,7 +21,7 @@
|
||||||
@if ($logged_in)
|
@if ($logged_in)
|
||||||
<form method="post" action="/timeline/home">
|
<form method="post" action="/timeline/home">
|
||||||
<input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
|
<input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
|
||||||
<textarea rows="4" name="status" placeholder="Reply" required autofocus></textarea>
|
<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="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