1
0
Fork 0
forked from mirror/pixelfed

Merge pull request #5232 from pixelfed/staging

Update ApiV1Controller
This commit is contained in:
daniel 2024-07-19 01:59:52 -06:00 committed by GitHub
commit 53b01f8c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;