From 120b78e30aa0da8dcf2af5b4bdc64c759486d13e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 10 Jan 2023 20:40:35 -0500 Subject: [PATCH] Enable profile user theme on single photo display --- mod/photos.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 50780724ff..050a254af3 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -62,7 +62,7 @@ function photos_init(App $a) Nav::setSelected('home'); if (DI::args()->getArgc() > 1) { - $owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]); + $owner = Profile::load(DI::app(), DI::args()->getArgv()[1], false); if (!isset($owner['account_removed']) || $owner['account_removed']) { throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.')); } @@ -111,12 +111,6 @@ function photos_init(App $a) ]); } - if (empty(DI::page()['aside'])) { - DI::page()['aside'] = ''; - } - - DI::page()['aside'] .= Widget\VCard::getHTML($owner); - if (!empty($photo_albums_widget)) { DI::page()['aside'] .= $photo_albums_widget; } -- 2.39.5