From 5579866bca258bb7c3fba29b65a956520c90b632 Mon Sep 17 00:00:00 2001 From: 1aerostorm Date: Fri, 14 Jun 2024 04:47:46 +0300 Subject: [PATCH] filter_apps in config --- app/MainApp.js | 1 + app/utils/ContentAccess.js | 2 +- config/blacklist.json | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/MainApp.js b/app/MainApp.js index c541122a4..f8fb5e38b 100644 --- a/app/MainApp.js +++ b/app/MainApp.js @@ -15,6 +15,7 @@ const initialState = { ...appConfig, blocked_users: [], blocked_posts: [], + filter_apps: [], add_notify_site: {} }, flash: { diff --git a/app/utils/ContentAccess.js b/app/utils/ContentAccess.js index 9a753f56d..7d8ecf238 100644 --- a/app/utils/ContentAccess.js +++ b/app/utils/ContentAccess.js @@ -7,7 +7,7 @@ function hasLS() { } export const getFilterApps = () => { - return ['freedom.blog'] + return $STM_Config.filter_apps } export function loadNsfwSettings(username) { diff --git a/config/blacklist.json b/config/blacklist.json index f46484c66..f068aac46 100644 --- a/config/blacklist.json +++ b/config/blacklist.json @@ -13,5 +13,8 @@ "/ru--kino/@nichosee/devushka-podayushaya-nadezhdy-promising-young-woman", "/ru--kino/@huckster/kosmicheskii-styob-pank-serial-2021-kovboi-bibop", "/ru--kino/@id-svetpro/nebo-2021" + ], + "filter_apps": [ + "freedom.blog" ] }