mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 21:13:16 +00:00
Merge pull request #4576 from pixelfed/staging
Update RemoteStatusPipeline, fix reply check
This commit is contained in:
commit
211a9057fc
1 changed files with 6 additions and 4 deletions
|
@ -93,11 +93,13 @@ 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);
|
||||||
|
if($parent) {
|
||||||
--$parent->reply_count;
|
--$parent->reply_count;
|
||||||
$parent->save();
|
$parent->save();
|
||||||
StatusService::del($parent->id);
|
StatusService::del($parent->id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AccountInterstitial::where('item_type', 'App\Status')
|
AccountInterstitial::where('item_type', 'App\Status')
|
||||||
->where('item_id', $status->id)
|
->where('item_id', $status->id)
|
||||||
|
|
Loading…
Reference in a new issue