1
0
Fork 0
forked from mirror/pixelfed

Update ApiV1Controller, fix follow/unfollow endpoints

This commit is contained in:
Daniel Supernault 2020-02-03 20:59:18 -07:00
parent b50ba10c62
commit fb91892ee2
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -369,7 +369,7 @@ class ApiV1Controller extends Controller
$target = Profile::where('id', '!=', $user->id) $target = Profile::where('id', '!=', $user->id)
->whereNull('status') ->whereNull('status')
->findOrFail($item); ->findOrFail($id);
$private = (bool) $target->is_private; $private = (bool) $target->is_private;
$remote = (bool) $target->domain; $remote = (bool) $target->domain;
@ -454,7 +454,7 @@ class ApiV1Controller extends Controller
$target = Profile::where('id', '!=', $user->id) $target = Profile::where('id', '!=', $user->id)
->whereNull('status') ->whereNull('status')
->findOrFail($item); ->findOrFail($id);
$private = (bool) $target->is_private; $private = (bool) $target->is_private;
$remote = (bool) $target->domain; $remote = (bool) $target->domain;