aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-20 23:43:02 +0000
committerThomas Willingham <founder@kakste.com>2013-03-20 23:43:02 +0000
commit499083d5d4b2e2a09003148e3da787c632871934 (patch)
tree6df3cd90c0a0ff7cdfb0a9f7f8823cc1daa6c5dc /mod
parent28975931b5a3a16554b391e3b08885ba118b3748 (diff)
downloadvolse-hubzilla-499083d5d4b2e2a09003148e3da787c632871934.tar.gz
volse-hubzilla-499083d5d4b2e2a09003148e3da787c632871934.tar.bz2
volse-hubzilla-499083d5d4b2e2a09003148e3da787c632871934.zip
Revert randprof - that was stupid. If you have a local channel, you also have it's xchan.
Diffstat (limited to 'mod')
-rw-r--r--mod/randprof.php17
1 files changed, 2 insertions, 15 deletions
diff --git a/mod/randprof.php b/mod/randprof.php
index 7678c15b9..bddb3251a 100644
--- a/mod/randprof.php
+++ b/mod/randprof.php
@@ -1,24 +1,11 @@
<?php
-function randprof_fallback() {
- $r = q("select channel_address from channel where channel_r_stream = 1 order by rand() limit 1");
-if($r)
- return $r[0]['channel_address'];
-return '';
-}
function randprof_init(&$a) {
require_once('include/Contact.php');
$x = random_profile();
if($x)
goaway(chanlink_url($x));
- // Nothing there, so try a local, public channel instead
- else $x = randprof_fallback();
- if($x) {
- $goaway = (z_root() . '/channel/' . $x);
- goaway(chanlink_url($goaway));}
-
- // If we STILL haven't got anything, send them to their own profile, or the front page
-
- goaway($a->get_baseurl());
+ // FIXME this doesn't work at the moment as a fallback
+ goaway($a->get_baseurl() . '/profile');
}