mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Update AP Inbox
This commit is contained in:
parent
6095f4c9c7
commit
9520df217b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue