aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-07-29 19:53:00 +0000
committerMario <mario@mariovavti.com>2020-07-29 19:53:00 +0000
commite31903cbc9fd9d1230fb4472f25f03f493e79629 (patch)
tree4d83fbde4e25a949d8306d67580135e93d8899bc /view/js
parent33d417955d1c84577ef01b00c3dd483028e93246 (diff)
downloadvolse-hubzilla-e31903cbc9fd9d1230fb4472f25f03f493e79629.tar.gz
volse-hubzilla-e31903cbc9fd9d1230fb4472f25f03f493e79629.tar.bz2
volse-hubzilla-e31903cbc9fd9d1230fb4472f25f03f493e79629.zip
add some context to the notifications
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f6a009937..853f2333d 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1550,7 +1550,7 @@ String.prototype.format = function() {
var formatted = this;
for (var i = 0; i < arguments.length; i++) {
var regexp = new RegExp('\\{'+i+'\\}', 'gi');
- formatted = formatted.replace(regexp, arguments[i]);
+ formatted = formatted.replace(regexp, ((typeof arguments[i] !== 'undefined') ? arguments[i] : ''));
}
return formatted;
};
@@ -1876,7 +1876,7 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) {
}
$(data).each(function() {
- html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.addr,this.message,this.when,this.hclass,this.b64mid,this.notify_id,this.thread_top,this.unseen,this.private_forum, encodeURIComponent(this.mids));
+ html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.addr,this.message,this.when,this.hclass,this.b64mid,this.notify_id,this.thread_top,this.unseen,this.private_forum, encodeURIComponent(this.mids), this.body);
notify_menu.append(html);
});