don't include deleted or orphaned xchans in ratings search
This commit is contained in:
parent
315dafbe12
commit
72479041ae
@ -58,7 +58,8 @@ class Ratingsearch extends \Zotlabs\Web\Controller {
|
|||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
|
|
||||||
$r = q("select * from xlink left join xchan on xlink_xchan = xchan_hash
|
$r = q("select * from xlink left join xchan on xlink_xchan = xchan_hash
|
||||||
where xlink_link = '%s' and xlink_rating != 0 and xlink_static = 1 order by xchan_name asc",
|
where xlink_link = '%s' and xlink_rating != 0 and xlink_static = 1 and xchan_orphan = 0 and xchan_deleted = 0
|
||||||
|
order by xchan_name asc",
|
||||||
dbesc($target)
|
dbesc($target)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user