mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update AccountController, include account entities in follow_requests.json endpoint
This commit is contained in:
parent
65cf9ccac9
commit
aded149fae
3 changed files with 5 additions and 5 deletions
|
@ -370,7 +370,7 @@ class AccountController extends Controller
|
||||||
'avatar' => $actor->avatarUrl(),
|
'avatar' => $actor->avatarUrl(),
|
||||||
'url' => $actor->url(),
|
'url' => $actor->url(),
|
||||||
'local' => $actor->domain == null,
|
'local' => $actor->domain == null,
|
||||||
'following' => $actor->followedBy(Auth::user()->profile)
|
'account' => AccountService::get($actor->id)
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -442,7 +442,7 @@ class ApiV1Controller extends Controller
|
||||||
|
|
||||||
if($pid != $account['id']) {
|
if($pid != $account['id']) {
|
||||||
if($account['locked']) {
|
if($account['locked']) {
|
||||||
if(FollowerService::follows($pid, $account['id'])) {
|
if(!FollowerService::follows($pid, $account['id'])) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -489,7 +489,7 @@ class ApiV1Controller extends Controller
|
||||||
|
|
||||||
if($pid != $account['id']) {
|
if($pid != $account['id']) {
|
||||||
if($account['locked']) {
|
if($account['locked']) {
|
||||||
if(FollowerService::follows($pid, $account['id'])) {
|
if(!FollowerService::follows($pid, $account['id'])) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -738,7 +738,7 @@ class PublicApiController extends Controller
|
||||||
|
|
||||||
if($pid != $account['id']) {
|
if($pid != $account['id']) {
|
||||||
if($account['locked']) {
|
if($account['locked']) {
|
||||||
if(FollowerService::follows($pid, $account['id'])) {
|
if(!FollowerService::follows($pid, $account['id'])) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -778,7 +778,7 @@ class PublicApiController extends Controller
|
||||||
|
|
||||||
if($pid != $account['id']) {
|
if($pid != $account['id']) {
|
||||||
if($account['locked']) {
|
if($account['locked']) {
|
||||||
if(FollowerService::follows($pid, $account['id'])) {
|
if(!FollowerService::follows($pid, $account['id'])) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue