planiverse

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

commit 82d7da2ba8794e05e9688828836e3fb62538a035
parent d3927063c50803648b5d00dde8963730c3af6900
Author: Alexander Yakovlev <keloero@oreolek.ru>
Date:   Mon, 11 Mar 2019 06:26:31 -0400

Fix: unset status states

Diffstat:
Mresources/views/status.blade.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/resources/views/status.blade.php b/resources/views/status.blade.php @@ -34,7 +34,7 @@ <!-- Reblog --> <span title="Reblog"> - @if ($status['reblogged']) + @if (isset($status['reblogged']) && $status['reblogged']) <span class="reblogged"> <a href="{{ route('unreblog', ['status_id' => $status['id']]) }}">&#8634;</a> </span> @@ -46,7 +46,7 @@ <!-- Favourite --> <span title="Favourite"> - @if ($status['favourited']) + @if (isset($status['favourited']) && $status['favourited']) <span class="favourited"> <a href="{{ route('unfavourite', ['status_id' => $status['id']]) }}">&#9733;</a> </span>