fix issues with diaspora xchans

This commit is contained in:
Mario Vavti
2017-11-02 08:44:46 +01:00
committed by Mario
parent 12f33d2cd4
commit cf5beafcfd
3 changed files with 6 additions and 6 deletions

View File

@@ -2160,7 +2160,7 @@ function xchan_mail_query(&$item) {
if(count($arr)) {
$chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash
where xchan_hash in (" . implode(',', $arr) . ") and hubloc_primary = 1");
where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1");
}
if($chans) {
$item['from'] = find_xchan_in_array($item['from_xchan'],$chans);