diff options
author | friendica <info@friendica.com> | 2013-06-27 20:49:45 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-27 20:49:45 -0700 |
commit | ae8316a2ca023ab49275dd3671180bf0e067abab (patch) | |
tree | b8fffafa748c57ac270d3b6c2dc2ed50161c2907 /mod | |
parent | e84f44710a1f37b4344c495f3818fc68e0521e0d (diff) | |
download | volse-hubzilla-ae8316a2ca023ab49275dd3671180bf0e067abab.tar.gz volse-hubzilla-ae8316a2ca023ab49275dd3671180bf0e067abab.tar.bz2 volse-hubzilla-ae8316a2ca023ab49275dd3671180bf0e067abab.zip |
autotag clean-up, mop up, and go home
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php index e93b152cf..c504c77e1 100644 --- a/mod/item.php +++ b/mod/item.php @@ -140,7 +140,9 @@ function item_post(&$a) { } } - if($parent) logger('mod_item: item_post parent=' . $parent); + if($parent) { + logger('mod_item: item_post parent=' . $parent); + } $observer = $a->get_observer(); @@ -320,10 +322,9 @@ function item_post(&$a) { $body = fix_mce_lf($body); } - // If we're sending a private message with a single @-taggable channel as a recipient, @-tag it. + // If we're sending a private top-level message with a single @-taggable channel as a recipient, @-tag it. - if(substr_count($str_contact_allow,'<') == 1 && $str_group_allow == '' && $str_contact_deny == '' && $str_group_deny == '') { - logger('mod-item: autotag'); + if((! $parent) && (substr_count($str_contact_allow,'<') == 1) && ($str_group_allow == '') && ($str_contact_deny == '') && ($str_group_deny == '')) { $x = q("select abook_id, abook_their_perms from abook where abook_xchan = '%s' and abook_channel = %d limit 1", dbesc(str_replace(array('<','>'),array('',''),$str_contact_allow)), intval($profile_uid) |