We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c14ff6 commit a579ebbCopy full SHA for a579ebb
frontend/utils/uploader.ts
@@ -58,7 +58,7 @@ export async function uploadPaste(
58
password: pasteSetting.password.length ? pasteSetting.password : undefined,
59
expire: pasteSetting.expiration,
60
name: pasteSetting.uploadKind === "custom" ? pasteSetting.name : undefined,
61
- highlightLanguage: editorState.editHighlightLang,
+ highlightLanguage: editorState.editKind === "edit" ? editorState.editHighlightLang : undefined,
62
encryptionScheme: pasteSetting.doEncrypt ? encryptionScheme : undefined,
63
manageUrl: pasteSetting.manageUrl,
64
}
0 commit comments