diff --git a/package.json b/package.json index 9037bb97..7dfcebac 100644 --- a/package.json +++ b/package.json @@ -58,17 +58,17 @@ "@types/throttle-debounce": "^5.0.2", "@vite-pwa/assets-generator": "^0.2.6", "@vite-pwa/sveltekit": "^0.6.6", - "@welshman/app": "^0.4.6", - "@welshman/content": "^0.4.6", - "@welshman/editor": "^0.4.6", - "@welshman/feeds": "^0.4.6", - "@welshman/lib": "^0.4.6", - "@welshman/net": "^0.4.6", - "@welshman/relay": "^0.4.6", - "@welshman/router": "^0.4.6", - "@welshman/signer": "^0.4.6", - "@welshman/store": "^0.4.6", - "@welshman/util": "^0.4.6", + "@welshman/app": "^0.4.7", + "@welshman/content": "^0.4.7", + "@welshman/editor": "^0.4.7", + "@welshman/feeds": "^0.4.7", + "@welshman/lib": "^0.4.7", + "@welshman/net": "^0.4.7", + "@welshman/relay": "^0.4.7", + "@welshman/router": "^0.4.7", + "@welshman/signer": "^0.4.7", + "@welshman/store": "^0.4.7", + "@welshman/util": "^0.4.7", "compressorjs": "^1.2.1", "daisyui": "^4.12.10", "date-picker-svelte": "^2.13.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 491d7044..69579495 100644 Binary files a/pnpm-lock.yaml and b/pnpm-lock.yaml differ diff --git a/src/app/components/SignUpKey.svelte b/src/app/components/SignUpKey.svelte index 0455c81d..4c675a70 100644 --- a/src/app/components/SignUpKey.svelte +++ b/src/app/components/SignUpKey.svelte @@ -45,7 +45,7 @@ idea is that you have a public key, which acts as your user ID, and a private key which allows you to prove your identity. - It's very important to keep your private key safe because it grants permanent and complete access to your + It's very important to keep your private key secret because it grants permanent and complete access to your account. ` diff --git a/src/app/editor/index.ts b/src/app/editor/index.ts index b3a36334..3780c6d8 100644 --- a/src/app/editor/index.ts +++ b/src/app/editor/index.ts @@ -17,7 +17,7 @@ import {Editor, MentionSuggestion, WelshmanExtension} from "@welshman/editor" import {makeMentionNodeView} from "./MentionNodeView" import ProfileSuggestion from "./ProfileSuggestion.svelte" import {pushToast} from "@app/util/toast" -import {stripExifData} from "@src/lib/html" +import {compressFile} from "@src/lib/html" export const getBlossomServer = () => { const userUrls = getTagValues("server", getListTags(userBlossomServers.get())) @@ -74,7 +74,7 @@ export const makeEditor = async ({ let file: Blob = attrs.file if (!file.type.match("image/(webp|gif)")) { - file = await stripExifData(file) + file = await compressFile(file) } const {ciphertext, key, nonce, algorithm} = await encryptFile(file) diff --git a/src/lib/components/InputPicture.svelte b/src/lib/components/InputPicture.svelte index e0d811ad..dc3d6132 100644 --- a/src/lib/components/InputPicture.svelte +++ b/src/lib/components/InputPicture.svelte @@ -1,6 +1,6 @@