mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:55:14 +00:00
autotag clean-up, mop up, and go home
This commit is contained in:
parent
e84f44710a
commit
ae8316a2ca
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue