Update ApiV1Controller

This commit is contained in:
Daniel Supernault 2024-07-19 01:59:28 -06:00
parent c5f85c71ae
commit c5fbc68745
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -3805,11 +3805,11 @@ class ApiV1Controller extends Controller
return false;
}
}
if ($i['visibility'] === 'private') {
if ((int) $i['account']['id'] !== $pid) {
return FollowerService::follows($pid, $i['account']['id'], true);
}
}
// if ($i['visibility'] === 'private') {
// if ((int) $i['account']['id'] !== $pid) {
// return FollowerService::follows($pid, $i['account']['id'], true);
// }
// }
if ($onlyMedia == true) {
if (! isset($i['media_attachments']) || ! count($i['media_attachments'])) {
return false;