Fix: misskey streaming

This commit is contained in:
Cutls 2019-06-26 00:33:44 +09:00
parent 546b34275d
commit 3a9eab55a4

View File

@ -998,11 +998,7 @@ function connectMisskey(acct_id) {
console.log([domain + ":Receive Streaming API:", data]); console.log([domain + ":Receive Streaming API:", data]);
var data = JSON.parse(mess.data) var data = JSON.parse(mess.data)
var obj = data.body.body var obj = data.body.body
if (localStorage.getItem("filter_" + acct_id) != "undefined") { var mute = [];
var mute = getFilterType(JSON.parse(localStorage.getItem("filter_" + acct_id)), type);
} else {
var mute = [];
}
if (data.body.id.indexOf("notf:") !== -1) { if (data.body.id.indexOf("notf:") !== -1) {
var obj = JSON.parse(mess.data).body; var obj = JSON.parse(mess.data).body;
console.log(obj); console.log(obj);