Update ApiV1Controller, fix follow/unfollow endpoints

pull/1989/head
Daniel Supernault 2020-02-03 20:59:18 -07:00
rodzic b50ba10c62
commit fb91892ee2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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