diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-10 20:30:55 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-10 20:30:55 +0100 |
commit | 3a17225546c9cd8f74bd1b2701e974fdda5929a2 (patch) | |
tree | 226c83c76c35fd33a561b5bc1a78178915e2a1df /Zotlabs/Lib/Enotify.php | |
parent | 5e541ff53b6db3da712b82ae3c470a5445b88767 (diff) | |
download | volse-hubzilla-3a17225546c9cd8f74bd1b2701e974fdda5929a2.tar.gz volse-hubzilla-3a17225546c9cd8f74bd1b2701e974fdda5929a2.tar.bz2 volse-hubzilla-3a17225546c9cd8f74bd1b2701e974fdda5929a2.zip |
revert back to get the mid from enotify - otherwise we can not distinct between posts and likes
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index d5798e671..697b57b6a 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -802,7 +802,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)) ); |