Skip to content

Commit

Permalink
Revert "Limit non-public visibility to video/audio/image/text content…
Browse files Browse the repository at this point in the history
… and pos…" (#3110)

This reverts commit e7883ee.
  • Loading branch information
tzarebczan authored Jun 10, 2024
1 parent e7883ee commit 434fcc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion ui/redux/actions/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 1 addition & 8 deletions ui/redux/selectors/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 434fcc6

Please sign in to comment.