Skip to content

Commit

Permalink
ENABLE_UPLOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Jan 5, 2025
1 parent 0b51374 commit 3b32b20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ NEXT_PUBLIC_API_KEY_GRAPHHOPPER=f189b841-6529-46c6-8a91-51f17477dcda
# optional, fill blank to disable
UMAMI_WEBSITE_ID=5e4d4917-9031-42f1-a26a-e71d7ab8e3fe

# Password for Wikimedia Commons upload bot, experimental. Please leave blank.
# Wikimedia Commons upload bot, experimental. Please leave blank.
NEXT_PUBLIC_ENABLE_UPLOAD=
OSMAPPBOT_PASSWORD=
2 changes: 1 addition & 1 deletion src/components/FeaturePanel/FeaturePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const FeaturePanel = ({ headingRef }: FeaturePanelProps) => {
</PanelSidePadding>

<Box mb={2}>
{advanced && (
{process.env.NEXT_PUBLIC_ENABLE_UPLOAD && (
<PanelSidePadding>
<UploadDialog />
</PanelSidePadding>
Expand Down
1 change: 0 additions & 1 deletion src/server/upload/uploadToWikimediaCommons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const uploadToWikimediaCommons = async (
);
}

console.log('pageId', pageId); // eslint-disable-line no-console
const claims = [
claimsHelpers.createCopyrightLicense(),
claimsHelpers.createCopyrightStatus(),
Expand Down

0 comments on commit 3b32b20

Please sign in to comment.