mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update ApiV1Controller, fix follow/unfollow endpoints
This commit is contained in:
parent
b50ba10c62
commit
fb91892ee2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue