mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update StatusDelete pipeline, call StatusService::del() to remove status from cache
This commit is contained in:
parent
069f20ff77
commit
3f772ff864
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ use GuzzleHttp\Pool;
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use GuzzleHttp\Promise;
|
use GuzzleHttp\Promise;
|
||||||
use App\Util\ActivityPub\HttpSignature;
|
use App\Util\ActivityPub\HttpSignature;
|
||||||
|
use App\Services\StatusService;
|
||||||
|
|
||||||
class StatusDelete implements ShouldQueue
|
class StatusDelete implements ShouldQueue
|
||||||
{
|
{
|
||||||
|
@ -59,6 +60,7 @@ class StatusDelete implements ShouldQueue
|
||||||
$status = $this->status;
|
$status = $this->status;
|
||||||
$profile = $this->status->profile;
|
$profile = $this->status->profile;
|
||||||
|
|
||||||
|
StatusService::del($status->id);
|
||||||
$count = $profile->statuses()
|
$count = $profile->statuses()
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
|
||||||
|
|
Loading…
Reference in a new issue