Skip to content

Commit

Permalink
Restore "v4 URL Mode (#2919)"
Browse files Browse the repository at this point in the history
The backend issue has been resolved.

Also bumped the minimum version for better logging.
  • Loading branch information
infinite-persistence committed Aug 14, 2023
1 parent b1b0a0a commit 17cedd9
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 504 deletions.
2 changes: 1 addition & 1 deletion .env.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# --- Minimum Version (Format: YYYYMMDDNNN) ---
# Bump this when we want to nudge the user to refresh.
MINIMUM_VERSION=20230804001
MINIMUM_VERSION=20230814001

# This is 'false' in the production instances:
IGNORE_MINIMUM_VERSION=true
Expand Down
1 change: 0 additions & 1 deletion flow-typed/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ declare type FileUploadSdkParams = {
uploadUrl?: string,
publishId?: number, // ID to query `stream_create | stream_update` progress
sdkRan?: boolean, // Legacy v3 flag (deprecated)
isMarkdown: boolean,
channel_id: ?string,
};

Expand Down
2 changes: 1 addition & 1 deletion ui/component/publish/shared/publishName/name-help-text.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function NameHelpText(props: Props) {

const currentUploadNames: Array<string> = React.useMemo(() => {
// $FlowFixMe - unable to resolve mixed
return Object.values(currentUploads).map((x) => (x.params ? x.params.name : ''));
return Object.values(currentUploads).map((x) => (x.params && !x.params.preview ? x.params.name : ''));
}, [currentUploads]);

let nameHelpText;
Expand Down
48 changes: 0 additions & 48 deletions web/setup/publish-error.js

This file was deleted.

92 changes: 0 additions & 92 deletions web/setup/publish-v1.js

This file was deleted.

Loading

0 comments on commit 17cedd9

Please sign in to comment.