aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-10 20:30:55 +0100
committerMario <mario@mariovavti.com>2017-11-11 20:28:00 +0100
commitebee3e208c0f0bb8c6b84d05a4c9005bf229f054 (patch)
tree8d1f7f7672dbef7355b79d64abb23976844e7bad /Zotlabs/Lib
parentf8cf68ab53f4a287162db556568f8e651f8d42a1 (diff)
downloadvolse-hubzilla-ebee3e208c0f0bb8c6b84d05a4c9005bf229f054.tar.gz
volse-hubzilla-ebee3e208c0f0bb8c6b84d05a4c9005bf229f054.tar.bz2
volse-hubzilla-ebee3e208c0f0bb8c6b84d05a4c9005bf229f054.zip
revert back to get the mid from enotify - otherwise we can not distinct between posts and likes
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index e82c11a35..21227893c 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -798,7 +798,8 @@ class Enotify {
'url' => $item['author']['xchan_url'],
'photo' => $item['author']['xchan_photo_s'],
'when' => relative_date($item['created']),
- 'class' => (intval($item['item_unseen']) ? 'notify-unseen' : 'notify-seen'),
+ 'class' => (intval($item['item_unseen']) ? 'notify-unseen' : 'notify-seen'),
+ 'b64mid' => ((in_array($item['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) ? 'b64.' . base64url_encode($item['thr_parent']) : 'b64.' . base64url_encode($item['mid'])),
'message' => strip_tags(bbcode($itemem_text))
);