aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-09 11:34:41 +0100
committerMario <mario@mariovavti.com>2017-11-11 20:27:31 +0100
commit28c85cf3ae658c72f5ab785998899804b6d20d8a (patch)
tree108fa317d2c946e6ce3042b8c3b0b72927ab0af0 /Zotlabs
parentcf4e2b295307adfe7c97cae6fd923d7c4eeed8ac (diff)
downloadvolse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.tar.gz
volse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.tar.bz2
volse-hubzilla-28c85cf3ae658c72f5ab785998899804b6d20d8a.zip
load notifications links to /display via ajax if we are already in /display
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Enotify.php1
-rw-r--r--Zotlabs/Widget/Notifications.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index e82c11a35..93c9094fd 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -799,6 +799,7 @@ class Enotify {
'photo' => $item['author']['xchan_photo_s'],
'when' => relative_date($item['created']),
'class' => (intval($item['item_unseen']) ? 'notify-unseen' : 'notify-seen'),
+ 'b64mid' => 'b64.' . base64url_encode($item['mid']),
'message' => strip_tags(bbcode($itemem_text))
);
diff --git a/Zotlabs/Widget/Notifications.php b/Zotlabs/Widget/Notifications.php
index a857f1ad9..191f2afb6 100644
--- a/Zotlabs/Widget/Notifications.php
+++ b/Zotlabs/Widget/Notifications.php
@@ -139,6 +139,7 @@ class Notifications {
}
$o = replace_macros(get_markup_template('notifications_widget.tpl'), array(
+ '$module' => \App::$module,
'$notifications' => $notifications,
'$loading' => t('Loading...')
));