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

pull/6134/head
Daniel Supernault 1 year ago
parent 950fc0474c
commit ab8d0ff46c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -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();

Loading…
Cancel
Save