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

This commit is contained in:
Mario
2026-04-27 08:18:50 +00:00
parent b20ed4f455
commit 0376b5d442

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);
}