diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-09-23 21:54:12 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-09-23 21:54:12 +0200 |
commit | 2870fd46da8ceaff5b3a2b0f6bc8d4c7f7601661 (patch) | |
tree | 6607509d641d0034b9b2fc2e8f4ed8d3e7c3becd /include | |
parent | dff8ef91a6e2e2b2fddb816218e15750061c4c2b (diff) | |
parent | 0588975e372f863aa2d74bbff0ac2b9778852431 (diff) | |
download | volse-hubzilla-2870fd46da8ceaff5b3a2b0f6bc8d4c7f7601661.tar.gz volse-hubzilla-2870fd46da8ceaff5b3a2b0f6bc8d4c7f7601661.tar.bz2 volse-hubzilla-2870fd46da8ceaff5b3a2b0f6bc8d4c7f7601661.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 933d94f3c..2ee870c2f 100644 --- a/include/items.php +++ b/include/items.php @@ -2423,9 +2423,14 @@ function send_status_notifications($post_id,$item) { $unfollowed = false; $parent = 0; + $is_reaction = false; + + $type = ((intval($item['item_private']) === 2) ? NOTIFY_MAIL : NOTIFY_COMMENT); if(array_key_exists('verb',$item) && (activity_match($item['verb'], ACTIVITY_LIKE) || activity_match($item['verb'], ACTIVITY_DISLIKE))) { + $type = NOTIFY_LIKE; + $r = q("select id from item where mid = '%s' and uid = %d limit 1", dbesc($item['thr_parent']), intval($item['uid']) @@ -2494,7 +2499,7 @@ function send_status_notifications($post_id,$item) { Enotify::submit(array( - 'type' => ((intval($item['item_private']) === 2) ? NOTIFY_MAIL : NOTIFY_COMMENT), + 'type' => $type, 'from_xchan' => $item['author_xchan'], 'to_xchan' => $r[0]['channel_hash'], 'item' => $item, |