actually there is no need to set App::$profile here because it will be set in profile_load() if applicable

(cherry picked from commit 0376b5d442)

Co-authored-by: Mario <mario@mariovavti.com>
This commit is contained in:
Mario
2026-05-18 19:01:04 +00:00
parent a0ea19e51c
commit 4922acb18a

View File

@@ -70,15 +70,6 @@ class Profile extends Controller {
'href' => z_root() . '/feed/' . $which . '?top=1'
]);
if (!$profile) {
$x = q("select channel_id as profile_uid from channel where channel_address = '%s' and channel_removed = 0 limit 1",
dbesc(argv(1))
);
if ($x) {
App::$profile = $x[0];
}
}
profile_load($which, $profile);
}