diff options
author | friendica <info@friendica.com> | 2013-05-28 01:40:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-28 01:40:27 -0700 |
commit | 7a011a99c7fd840df6e5a00f42573893586f8790 (patch) | |
tree | 7a8ea255af3590cd797e0755380676915f5b4370 /mod/like.php | |
parent | 9fda0a3fd5a78945f818f80bd45dc9e6e3995c4c (diff) | |
download | volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.tar.gz volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.tar.bz2 volse-hubzilla-7a011a99c7fd840df6e5a00f42573893586f8790.zip |
wrong attribution on likes of comments in email notifications. Let's also call the thing they liked a comment instead of a status
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 5 |
1 files changed, 4 insertions, 1 deletions
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]'; |