commit efcdf76c3eb266f54c93a64d9242c2f6a4fba856 parent cfaf2009ab326f77eeef25459a69c295a1e433a6 Author: St John Karp <stjohn@fuzzjunket.com> Date: Sat, 25 Aug 2018 10:22:46 -0700 Prefix mentions with an @ Prefix mentions with an @ so they get parsed properly instead of showing up as plain text. Diffstat:
M | resources/views/show_status.blade.php | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/resources/views/show_status.blade.php b/resources/views/show_status.blade.php @@ -26,7 +26,7 @@ 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> + <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'] }}" /> {{ csrf_field() }}