fix mod display and others that require a non-zero profile_uid for updates
This commit is contained in:
@@ -8,6 +8,9 @@ class Update extends \Zotlabs\Web\Controller {
|
||||
|
||||
$profile_uid = intval($_GET['p']);
|
||||
|
||||
if((! $profile_uid) && in_array(argv(1),['display','search','pubstream','home']))
|
||||
$profile_uid = (-1);
|
||||
|
||||
if(argc() < 2) {
|
||||
killme();
|
||||
}
|
||||
@@ -24,6 +27,9 @@ class Update extends \Zotlabs\Web\Controller {
|
||||
|
||||
header("Content-type: text/html");
|
||||
|
||||
\App::$argv = [ argv(1) ];
|
||||
\App::$argc = 1;
|
||||
|
||||
echo "<!DOCTYPE html><html><body><section>\r\n";
|
||||
echo $mod->get($profile_uid, $load);
|
||||
echo "</section></body></html>\r\n";
|
||||
|
||||
Reference in New Issue
Block a user