From 191af201fb48d902a7aa22699ab882e60d439e2d Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 10 Feb 2013 23:19:52 -0800 Subject: debug tag_deliver --- include/items.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 7db3e96a7..a192c79a2 100755 --- a/include/items.php +++ b/include/items.php @@ -1615,8 +1615,9 @@ function tag_deliver($uid,$item_id) { $terms = get_terms_oftype($item['term'],TERM_MENTION); + logger('tag_deliver: post mentions: ' . print_r($terms,true), LOGGER_DATA); - $link = normalise_link($a->get_baseurl() . '/channel/' . $u[0]['nickname']); + $link = normalise_link($a->get_baseurl() . '/channel/' . $u[0]['channel_address']); if($terms) { foreach($terms as $term) { @@ -1628,6 +1629,8 @@ function tag_deliver($uid,$item_id) { } if($mention) { + logger('tag_deliver: mention found for ' . $u[0]['channel_name']); + $r = q("update item set item_flags = ( item_flags | %d ) where id = %d limit 1", intval(ITEM_MENTIONSME), intval($item_id) -- cgit v1.2.3