Fix: unset status states

This commit is contained in:
Alexander Yakovlev 2019-03-11 06:26:31 -04:00
parent d3927063c5
commit 82d7da2ba8
1 changed files with 2 additions and 2 deletions

View File

@ -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>