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:
St John Karp 2018-08-25 09:53:40 -07:00
parent 79800b3cc9
commit 7d68f883ea
1 changed files with 1 additions and 1 deletions

View File

@ -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() }}