1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #1420 from pixelfed/frontend-ui-refactor

Update AP Inbox
This commit is contained in:
daniel 2019-06-18 12:58:29 -06:00 committed by GitHub
commit 170148bf60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,6 +229,8 @@ class Inbox
'item_id' => $parent->id,
'item_type' => 'App\Status'
]);
$parent->reblogs_count = $parent->shares()->count();
$parent->save();
}
public function handleAcceptActivity()
@ -289,6 +291,8 @@ class Inbox
]);
if($like->wasRecentlyCreated == true) {
$status->likes_count = $status->likes()->count();
$status->save();
LikePipeline::dispatch($like);
}