From f492a4d02f7723fec1e77e38075ac91922f3b43a Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 30 Jun 2026 19:07:57 +0200 Subject: [PATCH 1/2] Fixed Marks all and added total downloads to entries.show --- app/Services/XenforoApiService.php | 2 +- resources/views/entries/show.blade.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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') -- 2.39.5 From 1afe77415d736eb944590d1a7299eca8ae405688 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Tue, 30 Jun 2026 19:45:16 +0200 Subject: [PATCH 2/2] Fixed 500 error on form error --- bootstrap/app.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstrap/app.php b/bootstrap/app.php index 47d2e39..c0eab63 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -26,6 +26,14 @@ return Application::configure(basePath: dirname(__DIR__)) }) ->withExceptions(function (Exceptions $exceptions): void { $exceptions->render(function(Throwable $e, $request) { + if ( + $e instanceof \Illuminate\Validation\ValidationException || + $e instanceof \Illuminate\Auth\AuthenticationException || + $e instanceof \Illuminate\Auth\Access\AuthorizationException || + $e instanceof \Symfony\Component\HttpKernel\Exception\HttpException + ) { + return null; + } $statusCode = method_exists($e, 'getStatusCode') ? $e->getStatusCode() : 500; if( app()->environment('production') && $statusCode >= 500 && !$request->expectsJson() ){ -- 2.39.5