aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-15 21:52:05 -0800
committerfriendica <info@friendica.com>2012-11-15 21:52:05 -0800
commit5d4c9f5617ec8a99132a59d080f66989eba918f9 (patch)
tree295d01eeec1d098deb2289c3706ca655f2633908 /include/text.php
parentef192a3c14111bb144f338f43ed7ed9479d74f22 (diff)
downloadvolse-hubzilla-5d4c9f5617ec8a99132a59d080f66989eba918f9.tar.gz
volse-hubzilla-5d4c9f5617ec8a99132a59d080f66989eba918f9.tar.bz2
volse-hubzilla-5d4c9f5617ec8a99132a59d080f66989eba918f9.zip
more progress on notifier cleanup and encoding items for transit.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 63bb320ff..ee95646b7 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1710,7 +1710,8 @@ function xchan_query(&$items) {
}
}
if(count($arr)) {
- $chans = q("select * from xchan where xchan_hash in (" . implode(',', $arr) . ")");
+ $chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash
+ where xchan_hash in (" . implode(',', $arr) . ") and ( hubloc_flags & " . intval(HUBLOC_FLAGS_PRIMARY) . " )");
}
if($items && count($items) && $chans && count($chans)) {
for($x = 0; $x < count($items); $x ++) {