فهرست منبع

Update AP Inbox, handle Story View with the new StoryIndexService markSeen method

Daniel Supernault 3 هفته پیش
والد
کامیت
ab8d0ff46c
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      app/Util/ActivityPub/Inbox.php

+ 4 - 0
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();