planiverse

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

commit 660ea37e2b39ed59c3df9211a40cf36307fa359b
parent 1ccf787eb12549d1b155ab7ecbec4eab05a27f52
Author: St John Karp <contact@stjo.hn>
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:
Mresources/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() }}