Update AccountController, include account entities in follow_requests.json endpoint

pull/3532/head
Daniel Supernault 2022-06-11 00:37:36 -06:00
rodzic 65cf9ccac9
commit aded149fae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -370,7 +370,7 @@ class AccountController extends Controller
'avatar' => $actor->avatarUrl(),
'url' => $actor->url(),
'local' => $actor->domain == null,
'following' => $actor->followedBy(Auth::user()->profile)
'account' => AccountService::get($actor->id)
];
})
];

Wyświetl plik

@ -442,7 +442,7 @@ class ApiV1Controller extends Controller
if($pid != $account['id']) {
if($account['locked']) {
if(FollowerService::follows($pid, $account['id'])) {
if(!FollowerService::follows($pid, $account['id'])) {
return [];
}
}
@ -489,7 +489,7 @@ class ApiV1Controller extends Controller
if($pid != $account['id']) {
if($account['locked']) {
if(FollowerService::follows($pid, $account['id'])) {
if(!FollowerService::follows($pid, $account['id'])) {
return [];
}
}

Wyświetl plik

@ -738,7 +738,7 @@ class PublicApiController extends Controller
if($pid != $account['id']) {
if($account['locked']) {
if(FollowerService::follows($pid, $account['id'])) {
if(!FollowerService::follows($pid, $account['id'])) {
return [];
}
}
@ -778,7 +778,7 @@ class PublicApiController extends Controller
if($pid != $account['id']) {
if($account['locked']) {
if(FollowerService::follows($pid, $account['id'])) {
if(!FollowerService::follows($pid, $account['id'])) {
return [];
}
}