diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-29 20:35:56 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-29 20:35:56 -0700 |
commit | 0b347ccc14a384bfcbda343aacc1dfa1b7ddd740 (patch) | |
tree | 0b96e2816079fafdf3d8fa50ad130229e8733488 /include | |
parent | 2072ea721fa26b8e5f7dd4067434951b738de92b (diff) | |
download | volse-hubzilla-0b347ccc14a384bfcbda343aacc1dfa1b7ddd740.tar.gz volse-hubzilla-0b347ccc14a384bfcbda343aacc1dfa1b7ddd740.tar.bz2 volse-hubzilla-0b347ccc14a384bfcbda343aacc1dfa1b7ddd740.zip |
turn the connection filter into a feature.
Diffstat (limited to 'include')
-rw-r--r-- | include/features.php | 1 | ||||
-rwxr-xr-x | include/items.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/features.php b/include/features.php index 4121880a4..a6c4757cd 100644 --- a/include/features.php +++ b/include/features.php @@ -71,6 +71,7 @@ function get_features() { array('personal_tab', t('Network Personal Tab'), t('Enable tab to display only Network posts that you\'ve interacted on'),false), array('new_tab', t('Network New Tab'), t('Enable tab to display all new Network activity'),false), array('affinity', t('Affinity Tool'), t('Filter stream activity by depth of relationships'),false), + array('connfilter', t('Connection Filtering'), t('Filter incoming posts from connections based on keywords/content')), array('suggest', t('Suggest Channels'), t('Show channel suggestions'),false), ), 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); |