Update ApiV1Controller.php

Co-Authored-By: Mathieu <385764+Casmo@users.noreply.github.com>
pull/5895/head
Felipe Mateus 8 months ago
parent 456f96d574
commit 128533b5d8
No known key found for this signature in database
GPG Key ID: 94D494618F214123

@ -4443,12 +4443,12 @@ class ApiV1Controller extends Controller
$pid = $request->user()->profile_id;
if (intval($pid) === intval($target_id)) {
return $this->json(['error' => 'Request invalid! Targed is same user id.'], 500);
return $this->json(['error' => 'Request invalid! target_id is same user id.'], 500);
}
Follower::whereProfileId($target_id)
->whereFollowingId($pid)
->delete();
->whereFollowingId($pid)
->delete();
RelationshipService::refresh($pid, $target_id);

Loading…
Cancel
Save