aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-06 00:21:02 -0800
committerfriendica <info@friendica.com>2013-03-06 00:21:02 -0800
commit59ea4e32a0b8bc55249f09c4c0992b0bee221b2a (patch)
tree29dbdaae328564eee38b6bdf07c7c42af1e4de43
parentf74bdda0be78501690d2ac2dc06087d517fd4edd (diff)
downloadvolse-hubzilla-59ea4e32a0b8bc55249f09c4c0992b0bee221b2a.tar.gz
volse-hubzilla-59ea4e32a0b8bc55249f09c4c0992b0bee221b2a.tar.bz2
volse-hubzilla-59ea4e32a0b8bc55249f09c4c0992b0bee221b2a.zip
randprof sorta working
-rw-r--r--done6
-rw-r--r--include/Contact.php4
-rw-r--r--mod/randprof.php2
-rw-r--r--version.inc2
4 files changed, 7 insertions, 7 deletions
diff --git a/done b/done
index 3493971df..908ffc8f3 100644
--- a/done
+++ b/done
@@ -66,10 +66,10 @@ include/
= Scrape.php
+ security.php
? session.php
- socgraph.php
+? socgraph.php
= system_unavailable.php
= template_processor.php
- text.php
+? text.php
- user.php
+ zot.php
@@ -154,7 +154,7 @@ mod/
+ smilies.php
+ starred.php
subthread.php
- suggest.php
++ suggest.php
tagger.php
tagrm.php
? uexport.php
diff --git a/include/Contact.php b/include/Contact.php
index 6978b45bc..a49cc335f 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -397,8 +397,8 @@ function contact_photo_menu($contact) {
function random_profile() {
- $r = q("select xchan_url from xchan where xchan_network = 'zot' order by rand() limit 1");
- if($r && count($r))
+ $r = q("select xchan_url from xchan where 1 order by rand() limit 1");
+ if($r)
return $r[0]['xchan_url'];
return '';
}
diff --git a/mod/randprof.php b/mod/randprof.php
index 0726b231a..ca9fba7ef 100644
--- a/mod/randprof.php
+++ b/mod/randprof.php
@@ -5,6 +5,6 @@ function randprof_init(&$a) {
require_once('include/Contact.php');
$x = random_profile();
if($x)
- goaway(zid($x));
+ goaway(chanlink_url($x));
goaway($a->get_baseurl() . '/profile');
}
diff --git a/version.inc b/version.inc
index 55541a658..4a94d04b9 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-03-05.243
+2013-03-06.244