mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
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\Serializer\ArraySerializer;
|
||||
use App\Transformer\ActivityPub\Verb\Like as LikeTransformer;
|
||||
use App\Services\StatusService;
|
||||
|
||||
class LikePipeline implements ShouldQueue
|
||||
{
|
||||
|
@ -58,6 +59,8 @@ class LikePipeline implements ShouldQueue
|
|||
return;
|
||||
}
|
||||
|
||||
StatusService::del($status->id);
|
||||
|
||||
if($status->url && $actor->domain == null) {
|
||||
return $this->remoteLikeDeliver();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue