+{{ $board.Restricted }} + {{ template "posts" . }}
-- cgit v1.2.3 From 60b6bdf1c021fcffff397c7b1439a1407ed90f0a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 1 Jun 2021 00:45:05 -0700 Subject: changed actor to type Group and other clean up --- static/js/posts.js | 2 +- static/npost.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'static') diff --git a/static/js/posts.js b/static/js/posts.js index 8dd05eb..b2bfd7a 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -212,7 +212,7 @@ function report(actorName, id) var inReplyTo = document.getElementById("report-inReplyTo-box"); var w = window.innerWidth / 2 - 200; - var h = document.getElementById(id + "-content").offsetTop - 448; + var h = document.getElementById(id + "-content").offsetTop - 348; box.setAttribute("style", "display: block; position: absolute; width: 400px; height: 480px; z-index: 9; top: " + h + "px; left: " + w + "px; padding: 5px;"); diff --git a/static/npost.html b/static/npost.html index e3c4cec..b91b795 100644 --- a/static/npost.html +++ b/static/npost.html @@ -14,8 +14,6 @@
-{{ $board.Restricted }} - {{ template "posts" . }}
-- cgit v1.2.3 From 9d937e6f895ca7213ae759efca9b292a1d014ab3 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Thu, 3 Jun 2021 01:19:37 -0700 Subject: cleaning up removing posts --- static/js/posts.js | 15 +++++++-------- static/ncatalog.html | 11 +++++++---- static/posts.html | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) (limited to 'static') diff --git a/static/js/posts.js b/static/js/posts.js index b2bfd7a..077b654 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -26,6 +26,8 @@ function shortURL(actorName, url) { re = /.+\//g; temp = re.exec(url) + + var output if(stripTransferProtocol(temp[0]) == stripTransferProtocol(actorName) + "/") { @@ -39,11 +41,8 @@ function shortURL(actorName, url) re = /\w+$/g; - u = re.exec(short); - - return u; + output = re.exec(short); }else{ - var short = url.replace("https://", ""); short = short.replace("http://", ""); short = short.replace("www.", ""); @@ -64,10 +63,10 @@ function shortURL(actorName, url) v = re.exec(str) - v = "f" + v[0] + "-" + u - - return v; + output = "f" + v[0] + "-" + u } + + return output } function shortImg(url) @@ -113,7 +112,7 @@ function getBoardId(url) function convertContent(actorName, content, opid) { - var re = /(>>)(https:\/\/|http:\/\/)?(www\.)?.+\/\w+/gm; + var re = /(>>)(https?:\/\/)?(www\.)?.+\/\w+/gm; var match = content.match(re); var newContent = content; if(match) diff --git a/static/ncatalog.html b/static/ncatalog.html index 81d31f3..a399d13 100644 --- a/static/ncatalog.html +++ b/static/ncatalog.html @@ -24,6 +24,7 @@ {{ end }} + {{ end }} +