From 0b347ccc14a384bfcbda343aacc1dfa1b7ddd740 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 29 Jun 2015 20:35:56 -0700 Subject: turn the connection filter into a feature. --- include/items.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index cef303d2e..8bf6fce6b 100755 --- a/include/items.php +++ b/include/items.php @@ -3308,12 +3308,17 @@ function post_is_importable($item,$abook) { if(! $abook) return true; + + if(($abook['abook_channel']) && (! feature_enabled($abook['abook_channel'],'connfilter'))) + return true; + if(! $item) return false; if((! $abook['abook_incl']) && (! $abook['abook_excl'])) return true; + require_once('include/html2plain.php'); $text = prepare_text($item['body'],$item['mimetype']); $text = html2plain($text); -- cgit v1.2.3