Update LikePipeline, add StatusService del() method

This commit is contained in:
Daniel Supernault 2021-01-30 16:36:58 -07:00
parent 2eea04097a
commit 069f20ff77
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -14,6 +14,7 @@ use App\Util\ActivityPub\Helpers;
use League\Fractal; use League\Fractal;
use League\Fractal\Serializer\ArraySerializer; use League\Fractal\Serializer\ArraySerializer;
use App\Transformer\ActivityPub\Verb\Like as LikeTransformer; use App\Transformer\ActivityPub\Verb\Like as LikeTransformer;
use App\Services\StatusService;
class LikePipeline implements ShouldQueue class LikePipeline implements ShouldQueue
{ {
@ -58,6 +59,8 @@ class LikePipeline implements ShouldQueue
return; return;
} }
StatusService::del($status->id);
if($status->url && $actor->domain == null) { if($status->url && $actor->domain == null) {
return $this->remoteLikeDeliver(); return $this->remoteLikeDeliver();
} }