Fix: streaming bug

This commit is contained in:
Cutls 2019-06-25 23:26:01 +09:00
parent f1ea5ad8f1
commit 3368e30e15

View File

@ -998,7 +998,11 @@ 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 = 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);