Merge branch 'patch-20181103a' into 'dev'

Fix selfcensored query

See merge request macgirvin/osada!6
This commit is contained in:
Mike Macgirvin 2018-11-04 08:49:21 +01:00
commit 265f5adaaf

View file

@ -1441,7 +1441,7 @@ class Libzot {
$local_public = true;
$r = q("select xchan_selfcensored from xchan where xchan_hash = '%s' limit 1",
dbesc($sender['hash'])
dbesc($sender)
);
// don't import sys channel posts from selfcensored authors
if($r && (intval($r[0]['xchan_selfcensored']))) {