diff --git a/app/js/tl/mix.js b/app/js/tl/mix.js index 77bf0fad..e2ee13c5 100644 --- a/app/js/tl/mix.js +++ b/app/js/tl/mix.js @@ -43,15 +43,15 @@ function mixtl(acct_id, tlid, type, delc, voice) { timeline.splice(20); } var templete = ""; + if (localStorage.getItem("filter_" + acct_id) != "undefined") { + var mute = getFilterType(JSON.parse(localStorage.getItem("filter_" + acct_id)), "mix"); + } else { + var mute = []; + } Object.keys(timeline).forEach(function (key) { var pkey = key * 1 + 1; if (pkey < timeline.length) { if (date(timeline[key].created_at, "unix") != date(timeline[pkey].created_at, "unix")) { - if (localStorage.getItem("filter_" + acct_id) != "undefined") { - var mute = getFilterType(JSON.parse(localStorage.getItem("filter_" + acct_id)), "mix"); - } else { - var mute = []; - } if (type == "integrated") { templete = templete + parse([timeline[key]], '', acct_id, tlid, "", mute, "mix"); } else if (type == "plus") { diff --git a/app/package.json b/app/package.json index b263c78a..e37a5794 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "thedesk", - "version": "18.6.3", + "version": "18.6.4", "description": "TheDesk is a Mastodon client for PC.", "repository": "https://github.com/cutls/TheDesk", "main": "main.js", diff --git a/app/view/en/index.html b/app/view/en/index.html index c095343f..60ddb008 100644 --- a/app/view/en/index.html +++ b/app/view/en/index.html @@ -37,7 +37,7 @@