Fix #5227: Error on note previews due to URL length limit

Allow either GET or POST for /note_previews.
This commit is contained in:
evazion
2022-08-24 16:27:05 -05:00
parent 4215d5ed86
commit 3f10eeb954
3 changed files with 4 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ class Note {
async preview_text(text) {
this.display_text("Loading...");
let response = await $.getJSON("/note_previews", { body: text });
let response = await $.post("/note_previews", { body: text });
this.display_text(response.body);
this.initialize();