From ab8d0ff46cbf787505e07ed52cfcdf21e1dc0a8a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Aug 2025 04:14:39 -0600 Subject: [PATCH] Update AP Inbox, handle Story View with the new StoryIndexService markSeen method --- app/Util/ActivityPub/Inbox.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 7d62efc7f..019bdaab6 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -33,6 +33,7 @@ use App\Services\PollService; use App\Services\PushNotificationService; use App\Services\ReblogService; use App\Services\RelationshipService; +use App\Services\StoryIndexService; use App\Services\UserFilterService; use App\Status; use App\Story; @@ -1038,6 +1039,9 @@ class Inbox 'profile_id' => $profile->id, ]); + $index = app(StoryIndexService::class); + $index->markSeen($profile->id, $story->profile_id, $story->id, $story->created_at); + if ($view->wasRecentlyCreated == true) { $story->view_count++; $story->save();