From 9a0264f5d23f08d8dc9b4484c93f630dd91738b8 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 25 May 2015 19:17:35 -0700 Subject: some work on issue #329 --- mod/receive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/receive.php b/mod/receive.php index b7d27d40f..deaf8cb37 100644 --- a/mod/receive.php +++ b/mod/receive.php @@ -31,7 +31,7 @@ function receive_post(&$a) { // Diaspora sites *may* provide a truncated guid. - $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_guid like '%s' AND NOT (channel_pageflags & %d )>0 LIMIT 1", + $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_guid like '%s' AND (channel_pageflags & %d ) = 0 LIMIT 1", dbesc($guid . '%'), intval(PAGE_REMOVED) ); -- cgit v1.2.3