diff --git a/ui/redux/actions/publish.js b/ui/redux/actions/publish.js index 6640551fec..be58f84d78 100644 --- a/ui/redux/actions/publish.js +++ b/ui/redux/actions/publish.js @@ -611,7 +611,6 @@ export const doPrepareEdit = (claim: StreamClaim, uri: string, claimType: string ...(liveCreateType ? { liveCreateType } : {}), ...(liveEditType ? { liveEditType } : {}), claim_id: claim.claim_id, - fileMime: claim?.value?.source?.media_type, name, bid: Number(amount), author, diff --git a/ui/redux/selectors/publish.js b/ui/redux/selectors/publish.js index df560311d4..33e02c1569 100644 --- a/ui/redux/selectors/publish.js +++ b/ui/redux/selectors/publish.js @@ -289,12 +289,5 @@ export const selectCollectionClaimUploadParamsForId = (state: State, collectionI export const selectIsNonPublicVisibilityAllowed = (state: State) => { const channel = selectPublishFormValue(state, 'channel'); - - const fileMime = selectPublishFormValue(state, 'fileMime'); - const type = selectPublishFormValue(state, 'type'); - const allowedContentTypes = ['video', 'audio', 'image', 'text']; - const contentType = fileMime && fileMime.split('/'); - const isAllowedContentType = contentType ? allowedContentTypes.includes(contentType[0]) : false; - - return channel && channel !== CHANNEL_ANONYMOUS && (type === 'post' || isAllowedContentType); + return channel && channel !== CHANNEL_ANONYMOUS; };