From 5d4c9f5617ec8a99132a59d080f66989eba918f9 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 Nov 2012 21:52:05 -0800 Subject: more progress on notifier cleanup and encoding items for transit. --- include/text.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/text.php') 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 ++) { -- cgit v1.2.3