streams/Zotlabs/Module/Randprof.php
2021-12-03 14:01:39 +11:00

20 lines
346 B
PHP

<?php
namespace Zotlabs\Module;
use Zotlabs\Web\Controller;
class Randprof extends Controller
{
public function init()
{
$x = random_profile();
if ($x) {
goaway(chanlink_hash($x));
}
/** FIXME this doesn't work at the moment as a fallback */
goaway(z_root() . '/profile');
}
}