Fix #5227: Error on note previews due to URL length limit
Allow either GET or POST for /note_previews.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user