Update AP Inbox

This commit is contained in:
Daniel Supernault 2019-06-18 12:57:56 -06:00
parent 6095f4c9c7
commit 9520df217b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

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);
}