浏览代码

Update StatusDelete pipeline, call StatusService::del() to remove status from cache

Daniel Supernault 4 年之前
父节点
当前提交
3f772ff864
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Jobs/StatusPipeline/StatusDelete.php

+ 2 - 0
app/Jobs/StatusPipeline/StatusDelete.php

@@ -25,6 +25,7 @@ use GuzzleHttp\Pool;
 use GuzzleHttp\Client;
 use GuzzleHttp\Promise;
 use App\Util\ActivityPub\HttpSignature;
+use App\Services\StatusService;
 
 class StatusDelete implements ShouldQueue
 {
@@ -59,6 +60,7 @@ class StatusDelete implements ShouldQueue
         $status = $this->status;
         $profile = $this->status->profile;
 
+        StatusService::del($status->id);
         $count = $profile->statuses()
         ->getQuery()
         ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])