Update PublicApiController.php

pull/6415/head
Shlee 9 months ago committed by GitHub
parent ef6187b917
commit da03ca79d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -191,7 +191,7 @@ class PublicApiController extends Controller
if (! $user) {
abort(403);
} else {
$follows = FollowerService::follows($profile->id, $user->profile_id);
$follows = FollowerService::follows($user->profile_id, $profile->id);
if ($follows == false && $profile->id !== $user->profile_id && $user->is_admin == false) {
abort(404);
}

Loading…
Cancel
Save