diff --git a/app/Services/XenforoApiService.php b/app/Services/XenforoApiService.php index 1dd1a6e..ed99cb9 100644 --- a/app/Services/XenforoApiService.php +++ b/app/Services/XenforoApiService.php @@ -82,7 +82,7 @@ class XenforoApiService { public function markAllNotificationsRead(int $userId): void { Cache::forget("xf_alerts_{$userId}"); - $this->post("alerts/mark-all", $userId ); + $this->post("alerts/mark-all", $userId, ['read' => true, 'viewed' => true] ); } public function getConversations(int $userId): mixed diff --git a/resources/views/entries/show.blade.php b/resources/views/entries/show.blade.php index b069b98..7214e2f 100644 --- a/resources/views/entries/show.blade.php +++ b/resources/views/entries/show.blade.php @@ -122,6 +122,9 @@ @endif + @if( $entry->total_downloads ) + + @endif
@if($entry->state === 'pending')