Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(social): set federation enabled state after confirmation (#4038)
Varun Gujarathibd801432b35a
diff --git a/web/pages/admin/config-federation.tsx b/web/pages/admin/config-federation.tsxindex e48cf841d2..9bc6a5d82c 100644--- a/web/pages/admin/config-federation.tsx+++ b/web/pages/admin/config-federation.tsx@@ -37,7 +37,7 @@ const FederationInfoModal: FC<FederationInfoModalProps> = ({ cancelPressed, okPr<Modalwidth="70%"title="Enable Social Features"- visible+ openonCancel={cancelPressed}footer={<div>@@ -125,6 +125,17 @@ const ConfigFederation = () => {const handleEnabledSwitchChange = (value: boolean) => {if (!value) {+ postConfigUpdateToAPI({+ apiPath: FIELD_PROPS_ENABLE_FEDERATION.apiPath,+ data: { value: false },+ onSuccess: () => {+ setFieldInConfigState({+ fieldName: 'enabled',+ value: false,+ path: FIELD_PROPS_ENABLE_FEDERATION.configPath,+ });+ },+ });setFormDataValues({...formDataValues,enabled: false,@@ -153,6 +164,17 @@ const ConfigFederation = () => {function federationInfoModalCancelPressed() {setIsInfoModalOpen(false);+ postConfigUpdateToAPI({+ apiPath: FIELD_PROPS_ENABLE_FEDERATION.apiPath,+ data: { value: false },+ onSuccess: () => {+ setFieldInConfigState({+ fieldName: 'enabled',+ value: false,+ path: FIELD_PROPS_ENABLE_FEDERATION.configPath,+ });+ },+ });setFormDataValues({...formDataValues,enabled: false,@@ -161,6 +183,17 @@ const ConfigFederation = () => {function federationInfoModalOkPressed() {setIsInfoModalOpen(false);+ postConfigUpdateToAPI({+ apiPath: FIELD_PROPS_ENABLE_FEDERATION.apiPath,+ data: { value: false },+ onSuccess: () => {+ setFieldInConfigState({+ fieldName: 'enabled',+ value: true,+ path: FIELD_PROPS_ENABLE_FEDERATION.configPath,+ });+ },+ });setFormDataValues({...formDataValues,enabled: true,diff --git a/web/utils/config-constants.tsx b/web/utils/config-constants.tsxindex 28f35503d7..dfcee02523 100644--- a/web/utils/config-constants.tsx+++ b/web/utils/config-constants.tsx@@ -313,7 +313,7 @@ export const FIELD_PROPS_ENABLE_FEDERATION = {configPath: 'federation',label: 'Enable Social Features',tip: 'Send and receive activities on the Fediverse.',- useSubmit: true,+ useSubmit: false,};export const FIELD_PROPS_FEDERATION_IS_PRIVATE = {