Bring back blossom server auth, fix duplicate direct messages

This commit is contained in:
Jon Staab
2025-09-29 14:24:42 -07:00
parent 7ff9c00032
commit dd3231e70f
6 changed files with 45 additions and 33 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ import {uploadFile} from "@app/core/commands"
import {pushToast} from "@app/util/toast"
export const makeEditor = async ({
encryptFiles = false,
aggressive = false,
autofocus = false,
charCount,
@@ -21,6 +22,7 @@ export const makeEditor = async ({
uploading,
wordCount,
}: {
encryptFiles?: boolean
aggressive?: boolean
autofocus?: boolean
charCount?: Writable<number>
@@ -51,7 +53,8 @@ export const makeEditor = async ({
},
fileUpload: {
config: {
upload: (attrs: FileAttributes) => uploadFile(attrs.file, {url, encrypt: true}),
upload: (attrs: FileAttributes) =>
uploadFile(attrs.file, {url, encrypt: encryptFiles}),
onDrop: () => uploading?.set(true),
onComplete: () => uploading?.set(false),
onUploadError(currentEditor, task) {