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

pull/2599/head
Daniel Supernault 2021-01-30 16:37:29 -07:00
rodzic 069f20ff77
commit 3f772ff864
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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'])