diff --git a/Web/Presenters/templates/components/textArea.xml b/Web/Presenters/templates/components/textArea.xml index d5778ebd..b4b2ff72 100644 --- a/Web/Presenters/templates/components/textArea.xml +++ b/Web/Presenters/templates/components/textArea.xml @@ -2,7 +2,7 @@ {var $textAreaId = ($post ?? NULL) === NULL ? (++$GLOBALS["textAreaCtr"]) : $post->getId()} {var $textAreaId = ($custom_id ?? NULL) === NULL ? $textAreaId : $custom_id} -
+
diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 9d529b5c..c288bfdc 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -1191,6 +1191,7 @@ async function __uploadToTextarea(file, textareaNode) { const form_data = new FormData form_data.append('photo_0', file) form_data.append('count', 1) + form_data.append('upload_context', textareaNode.nodes[0].dataset.id) form_data.append("hash", u("meta[name=csrf]").attr("value")) if(filetype == 'photo') {