aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-09-15 10:36:46 +0200
committerMario Vavti <mario@mariovavti.com>2016-09-15 10:36:46 +0200
commit31df7af61f449d2fe307b3440c7dd7bf4b016cf0 (patch)
tree80ed6f1cab63babe0ca9f569b603eb6423caee82
parentf55636bcb51865f341177fd1abbea51612480699 (diff)
downloadvolse-hubzilla-31df7af61f449d2fe307b3440c7dd7bf4b016cf0.tar.gz
volse-hubzilla-31df7af61f449d2fe307b3440c7dd7bf4b016cf0.tar.bz2
volse-hubzilla-31df7af61f449d2fe307b3440c7dd7bf4b016cf0.zip
do not show hidden channels in /randprof issue #513
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index 4f685388c..017117dda 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -608,7 +608,7 @@ function random_profile() {
for($i = 0; $i < $retryrandom; $i++) {
- $r = q("select xchan_url from xchan left join hubloc on hubloc_hash = xchan_hash where xchan_addr not like '%s' and hubloc_connected > %s - interval %s order by $randfunc limit 1",
+ $r = q("select xchan_url from xchan left join hubloc on hubloc_hash = xchan_hash where xchan_addr not like '%s' and xchan_hidden = 0 and hubloc_connected > %s - interval %s order by $randfunc limit 1",
dbesc('sys@%'),
db_utcnow(), db_quoteinterval('30 day')
);