From efa4b975d3a739d0073dcdbbd67803f149690c88 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 12 Nov 2020 23:52:47 +0300 Subject: [PATCH] Add Websocket based federation settings, fix key for PurgeExpiredActivity setting --- src/views/settings/components/Http.vue | 10 ++++++++++ src/views/settings/components/tabs.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index 128aa5f4..7b82537e 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -15,6 +15,10 @@ + + + +
Submit
@@ -40,6 +44,12 @@ export default { corsPlugData() { return _.get(this.settings.settings, [':cors_plug']) || {} }, + fedSockets() { + return this.settings.description.find(setting => setting.key === ':fed_sockets') + }, + fedSocketsData() { + return _.get(this.settings.settings, [':pleroma', ':fed_sockets']) || {} + }, http() { return this.settings.description.find(setting => setting.key === ':http') }, diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index 89185971..6871ca9b 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -26,7 +26,7 @@ export const tabs = description => { }, 'http': { label: 'settings.http', - settings: [':cors_plug', ':http', ':http_security', ':web_cache_ttl'] + settings: [':cors_plug', ':http', ':fed_sockets', ':http_security', ':web_cache_ttl'] }, 'instance': { label: 'settings.instance',