kopia lustrzana https://github.com/friendica/friendica
Abort early if owner isn't found in mod/photos
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894779649pull/10612/head
rodzic
64d6df659d
commit
891c0ff130
|
@ -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']));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue