diff options
author | Arno Richter <oelna@oelna.de> | 2023-08-16 14:52:58 +0200 |
---|---|---|
committer | Arno Richter <oelna@oelna.de> | 2023-08-16 14:52:58 +0200 |
commit | 66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5 (patch) | |
tree | fa54ab21d4c6122df124459030dd5c6af723f1af /js/microblog.js | |
parent | ff2858b6ea8f586daa95e51ae21315f86cc5ded5 (diff) | |
download | microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.tar.gz microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.tar.bz2 microblog-66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5.zip |
huge update to implement first version of activitypub support. closes #16. AP and subdir hosting are incompatible!
Diffstat (limited to 'js/microblog.js')
-rw-r--r-- | js/microblog.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/microblog.js b/js/microblog.js index f7963e3..d1149e7 100644 --- a/js/microblog.js +++ b/js/microblog.js @@ -24,7 +24,7 @@ if (textarea) { const postForm = document.querySelector('#post-new-form'); let useDragDrop = (!!window.FileReader && 'draggable' in document.createElement('div')); -useDragDrop = true; +// useDragDrop = false; // remove, only for testing! if (postForm) { const droparea = postForm.querySelector('#post-droparea'); const attachmentsInput = postForm.querySelector('#post-attachments'); @@ -158,8 +158,8 @@ if (postForm) { if (response.ok && response.status == 200) { const txt = await response.text(); - // console.log(response, txt); - window.location.href = postForm.dataset.redirect; + // console.log('form result', response, txt); + window.location.href = postForm.dataset.redirect + '?t=' + Date.now(); } else { console.warn('error during post submission!', response); } |