Ungate video upload size change (#10683)

This commit is contained in:
Samuel Newman
2026-06-02 17:06:47 +03:00
committed by GitHub
parent cbf8e95bdb
commit fd9f988b90
7 changed files with 20 additions and 45 deletions
+2 -8
View File
@@ -222,10 +222,6 @@ export const ComposePost = ({
const [publishingStage, setPublishingStage] = useState('')
const [error, setError] = useState('')
const enableLargeVideoUploads = ax.features.enabled(
ax.features.LargeVideoUploads,
)
/**
* Track when a draft was created so we can measure draft age in metrics.
* Set when a draft is loaded via handleSelectDraft.
@@ -348,10 +344,9 @@ export const ComposePost = ({
currentDid,
abortController.signal,
i18n,
enableLargeVideoUploads,
)
},
[i18n, agent, currentDid, composerDispatch, enableLargeVideoUploads],
[i18n, agent, currentDid, composerDispatch],
)
const onInitVideo = useNonReactiveCallback(() => {
@@ -496,7 +491,6 @@ export const ComposePost = ({
currentDid,
abortController.signal,
i18n,
enableLargeVideoUploads,
)
} catch (e) {
logger.error('Failed to restore video from draft', {
@@ -505,7 +499,7 @@ export const ComposePost = ({
})
}
},
[i18n, agent, currentDid, composerDispatch, enableLargeVideoUploads],
[i18n, agent, currentDid, composerDispatch],
)
const handleSelectDraft = useCallback(