forked from mirror/pixelfed
Update LikePipeline, add StatusService del() method
This commit is contained in:
parent
2eea04097a
commit
069f20ff77
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue