diff options
| author | Shyam Sunder | 2018-06-25 10:47:20 -0400 |
|---|---|---|
| committer | Marcin Kurczewski | 2018-06-27 21:20:03 +0200 |
| commit | 3972b902d840e54bd4f8dd47a9d13bc20ee22c65 (patch) | |
| tree | 22a2d05fdc2a89a6c6595ef2a56d0747d761dc2a /client/js/models/post_list.js | |
| parent | 2bf361c64a46d575533f68f8ced88e037f887335 (diff) | |
client: fetch configurations from server at runtime
Permissions, regex filters, app title, email info,
and safety now fetched using server's Info API
Diffstat (limited to 'client/js/models/post_list.js')
| -rw-r--r-- | client/js/models/post_list.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/models/post_list.js b/client/js/models/post_list.js index 2e3c6fc..2bfd056 100644 --- a/client/js/models/post_list.js +++ b/client/js/models/post_list.js @@ -37,7 +37,7 @@ class PostList extends AbstractList { static _decorateSearchQuery(text) { const browsingSettings = settings.get(); const disabledSafety = []; - if (config.enableSafety) { + if (api.safetyEnabled()) { for (let key of Object.keys(browsingSettings.listPosts)) { if (browsingSettings.listPosts[key] === false) { disabledSafety.push(key); |