mirror of
https://github.com/friendica/friendica
synced 2024-11-17 22:23:41 +00:00
Abort early if owner isn't found in mod/photos
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894779649
This commit is contained in:
parent
64d6df659d
commit
891c0ff130
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ function photos_init(App $a) {
|
|||
|
||||
if (DI::args()->getArgc() > 1) {
|
||||
$owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]);
|
||||
if (!$owner) {
|
||||
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
|
||||
}
|
||||
|
||||
$is_owner = (local_user() && (local_user() == $owner['uid']));
|
||||
|
||||
|
|
Loading…
Reference in a new issue