1
0
Fork 0
forked from mirror/pixelfed

Update CommentPipeline

This commit is contained in:
Daniel Supernault 2022-01-08 04:59:28 -07:00
parent a578035bbc
commit 1515a9f111
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 10 additions and 1 deletions

View file

@ -93,5 +93,14 @@ class CommentPipeline implements ShouldQueue
NotificationService::set($notification->profile_id, $notification->id); NotificationService::set($notification->profile_id, $notification->id);
StatusService::del($comment->id); StatusService::del($comment->id);
}); });
if($exists = Cache::get('status:replies:all:' . $status->id)) {
if($exists && $exists->count() == 3) {
} else {
Cache::forget('status:replies:all:' . $status->id);
}
} else {
Cache::forget('status:replies:all:' . $status->id);
}
} }
} }