mirror of
https://github.com/friendica/friendica
synced 2025-04-23 22:30:10 +00:00
Issue 8371: Improvements for picture permissions
This commit is contained in:
parent
95bfc094e8
commit
37376fa715
8 changed files with 54 additions and 15 deletions
|
@ -84,13 +84,13 @@ class Photo extends BaseModule
|
|||
}
|
||||
$photo = MPhoto::getPhoto($photoid, $scale);
|
||||
if ($photo === false) {
|
||||
$photo = MPhoto::createPhotoForSystemResource("images/nosign.jpg");
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('The Photo with id %s is not available.', $photoid));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ($photo === false) {
|
||||
System::httpExit('404', 'Not Found');
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
$cacheable = ($photo["allow_cid"] . $photo["allow_gid"] . $photo["deny_cid"] . $photo["deny_gid"] === "") && (isset($photo["cacheable"]) ? $photo["cacheable"] : true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue