From 66c6658bac8b0e99b59e3b9f4eb285f38bcebcf5 Mon Sep 17 00:00:00 2001 From: Arno Richter Date: Wed, 16 Aug 2023 14:52:58 +0200 Subject: huge update to implement first version of activitypub support. closes #16. AP and subdir hosting are incompatible! --- js/microblog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/microblog.js') 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); } -- cgit v1.2.3