commit 4c1ff0d48f7c854d79e77ddf761d8a0da989de86
parent d3927063c50803648b5d00dde8963730c3af6900
Author: St John Karp <stjohn@fuzzjunket.com>
Date: Sat, 16 Mar 2019 04:23:19 -0500
Merge pull request #2 from Oreolek/views
Fix: unset status states
Diffstat:
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']]) }}">↺</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']]) }}">★</a>
</span>