mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update ApiV1Controller
This commit is contained in:
parent
c5f85c71ae
commit
c5fbc68745
1 changed files with 5 additions and 5 deletions
|
@ -3805,11 +3805,11 @@ class ApiV1Controller extends Controller
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($i['visibility'] === 'private') {
|
// if ($i['visibility'] === 'private') {
|
||||||
if ((int) $i['account']['id'] !== $pid) {
|
// if ((int) $i['account']['id'] !== $pid) {
|
||||||
return FollowerService::follows($pid, $i['account']['id'], true);
|
// return FollowerService::follows($pid, $i['account']['id'], true);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if ($onlyMedia == true) {
|
if ($onlyMedia == true) {
|
||||||
if (! isset($i['media_attachments']) || ! count($i['media_attachments'])) {
|
if (! isset($i['media_attachments']) || ! count($i['media_attachments'])) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue