convert randprof to use chanlink_hash() instead of chanlink_url() and filter sys channels by xchan.xchan_system instead of xchan_addr != sys@%

This commit is contained in:
git-marijus
2017-06-03 10:13:42 +02:00
parent 56f3b12171
commit c4ed04fc82
2 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ class Randprof extends \Zotlabs\Web\Controller {
function init() {
$x = random_profile();
if($x)
goaway(chanlink_url($x));
goaway(chanlink_hash($x));
/** FIXME this doesn't work at the moment as a fallback */
goaway(z_root() . '/profile');