From 2a2607eb4b651aa8b24e6d42bee5ec7d96b579e7 Mon Sep 17 00:00:00 2001 From: cutls Date: Sun, 3 May 2020 22:05:45 +0900 Subject: [PATCH] follow request --- app/js/tl/notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/js/tl/notification.js b/app/js/tl/notification.js index a3deaa13..f62fcc21 100644 --- a/app/js/tl/notification.js +++ b/app/js/tl/notification.js @@ -239,8 +239,10 @@ function notfWS(misskey, acct_id, tlid, domain, at) { localStorage.setItem('lastnotf_' + acct_id, obj.id) if (!$('#unread_' + tlid + ' .material-icons').hasClass('teal-text')) { //markers show中はダメ - if (obj.type != 'follow') { + if (obj.type != 'follow' && obj.type != 'follow_request') { templete = parse([obj], 'notf', acct_id, 'notf', popup) + } else if (obj.type == 'follow_request') { + templete = userparse([obj.account], 'request', acct_id, 'notf', -1) } else { templete = userparse([obj], obj.type, acct_id, 'notf', popup) }