From 7a011a99c7fd840df6e5a00f42573893586f8790 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 28 May 2013 01:40:27 -0700 Subject: wrong attribution on likes of comments in email notifications. Let's also call the thing they liked a comment instead of a status --- mod/like.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mod/like.php') diff --git a/mod/like.php b/mod/like.php index 35a94ab78..bf707477c 100755 --- a/mod/like.php +++ b/mod/like.php @@ -127,6 +127,9 @@ function like_content(&$a) { ), )); + if(! ($item['item_flags'] & ITEM_THREAD_TOP)) + $post_type = 'comment'; + if($verb === 'like') $bodyverb = t('%1$s likes %2$s\'s %3$s'); if($verb === 'dislike') @@ -153,7 +156,7 @@ function like_content(&$a) { $arr['author_xchan'] = $observer['xchan_hash']; - $ulink = '[zrl=' . $thread_owner['xchan_url'] . ']' . $thread_owner['xchan_name'] . '[/zrl]'; + $ulink = '[zrl=' . $item_author['xchan_url'] . ']' . $item_author['xchan_name'] . '[/zrl]'; $alink = '[zrl=' . $observer['xchan_url'] . ']' . $observer['xchan_name'] . '[/zrl]'; $plink = '[zrl=' . $a->get_baseurl() . '/display/' . $item['mid'] . ']' . $post_type . '[/zrl]'; -- cgit v1.2.3