Merge pull request #2 from Oreolek/views

Fix: unset status states
This commit is contained in:
St John Karp 2019-03-16 04:23:19 -05:00 committed by GitHub
commit 4c1ff0d48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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