diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-05-17 01:38:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-16 15:38:34 -0700 |
commit | 1cdbfc709235ed1933ba51403d941762f384690b (patch) | |
tree | f55aa9a16f05645bcc5c2d63839113725b1ca308 /src/state/queries/service-config.ts | |
parent | 75ffb3d243a5415d173f2bca8a5334b70451a1f4 (diff) | |
download | voidsky-1cdbfc709235ed1933ba51403d941762f384690b.tar.zst |
Live via service config (#8378)
* add config (with temp config) * only allow whitelisted domains in form * move config to generic config * use array-based config * update deps * rm expect-error
Diffstat (limited to 'src/state/queries/service-config.ts')
-rw-r--r-- | src/state/queries/service-config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/queries/service-config.ts b/src/state/queries/service-config.ts index 12d2cc6be..890a49a5c 100644 --- a/src/state/queries/service-config.ts +++ b/src/state/queries/service-config.ts @@ -6,6 +6,10 @@ import {useAgent} from '#/state/session' type ServiceConfig = { checkEmailConfirmed: boolean topicsEnabled: boolean + liveNow: { + did: string + domains: string[] + }[] } export function useServiceConfigQuery() { @@ -21,11 +25,13 @@ export function useServiceConfigQuery() { checkEmailConfirmed: Boolean(data.checkEmailConfirmed), // @ts-expect-error not included in types atm topicsEnabled: Boolean(data.topicsEnabled), + liveNow: data.liveNow ?? [], } } catch (e) { return { checkEmailConfirmed: false, topicsEnabled: false, + liveNow: [], } } }, |