From a07341569819f7f55d9e8b86db02c7e5ae9e8ba4 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 26 Apr 2021 11:06:56 -0700 Subject: new line after quote --- main.go | 2 +- static/js/posts.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 6383aaf..5fe0346 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ var Domain = TP + "" + GetConfigValue("instance") var authReq = []string{"captcha","email","passphrase"} -var supportedFiles = []string{"image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/avif","image/apng","video/mp4","video/ogg","video/webm","audio/mpeg","audio/ogg","audio/wav", "audio/wave", "audio/x-wav"} +var supportedFiles = []string{"image/gif","image/jpeg","image/png","image/svg+xml","image/svg","image/webp","image/avif","image/apng","video/mp4","video/ogg","video/webm","audio/mpeg","audio/ogg","audio/wav", "audio/wave", "audio/x-wav"} var SiteEmail = GetConfigValue("emailaddress") //contact@fchan.xyz var SiteEmailPassword = GetConfigValue("emailpass") diff --git a/static/js/posts.js b/static/js/posts.js index d6395e2..592a35d 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -197,12 +197,8 @@ function quote(actorName, opid, id) header.innerText = "Replying to Thread No. " + shortURL(actorName, opid); inReplyTo.value = opid; - if(id != "reply") { - if(comment.value != "") - comment.value += "\n>>" + id; - else - comment.value += ">>" + id; - } + if(id != "reply") + comment.value += ">>" + id + "\n"; dragElement(header); -- cgit v1.2.3