mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Update RemoteStatusPipeline, fix reply check
This commit is contained in:
parent
fab8f25e9b
commit
618b67271a
1 changed files with 6 additions and 4 deletions
|
@ -93,10 +93,12 @@ class RemoteStatusDelete implements ShouldQueue
|
||||||
{
|
{
|
||||||
|
|
||||||
if($status->in_reply_to_id) {
|
if($status->in_reply_to_id) {
|
||||||
$parent = Status::findOrFail($status->in_reply_to_id);
|
$parent = Status::find($status->in_reply_to_id);
|
||||||
--$parent->reply_count;
|
if($parent) {
|
||||||
$parent->save();
|
--$parent->reply_count;
|
||||||
StatusService::del($parent->id);
|
$parent->save();
|
||||||
|
StatusService::del($parent->id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountInterstitial::where('item_type', 'App\Status')
|
AccountInterstitial::where('item_type', 'App\Status')
|
||||||
|
|
Loading…
Reference in a new issue