forked from mirror/pixelfed
Merge pull request #1420 from pixelfed/frontend-ui-refactor
Update AP Inbox
This commit is contained in:
commit
170148bf60
1 changed files with 4 additions and 0 deletions
|
@ -229,6 +229,8 @@ class Inbox
|
||||||
'item_id' => $parent->id,
|
'item_id' => $parent->id,
|
||||||
'item_type' => 'App\Status'
|
'item_type' => 'App\Status'
|
||||||
]);
|
]);
|
||||||
|
$parent->reblogs_count = $parent->shares()->count();
|
||||||
|
$parent->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleAcceptActivity()
|
public function handleAcceptActivity()
|
||||||
|
@ -289,6 +291,8 @@ class Inbox
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if($like->wasRecentlyCreated == true) {
|
if($like->wasRecentlyCreated == true) {
|
||||||
|
$status->likes_count = $status->likes()->count();
|
||||||
|
$status->save();
|
||||||
LikePipeline::dispatch($like);
|
LikePipeline::dispatch($like);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue