diff --git a/script.js b/script.js index 905241a..09e0115 100644 --- a/script.js +++ b/script.js @@ -468,7 +468,7 @@ function mkSpamImgElement(img_description) { } else if (mime == "audio/mpeg") { thumb_url = '/static/mpg.png'; } else { - thumb_url = `/bin/?path=${GlobalVars.settings.content_directory}/${img_description.md5_hash}_thumbnail.jpg&mimetype=image/jpeg` + thumb_url = `/bin/?path=${img_description.md5_hash}_thumbnail.jpg&mimetype=image/jpeg` } img_elem.setAttribute('src', thumb_url); @@ -478,7 +478,7 @@ function mkSpamImgElement(img_description) { var a_elem; if (!illegal) { - var image_url = `/bin/?path=${GlobalVars.settings.content_directory}/${img_description.md5_hash}.attachment&mimetype=${mime}` + var image_url = `/bin/?path=${img_description.md5_hash}.attachment&mimetype=${mime}` a_elem = document.createElement('a'); a_elem.setAttribute('href', image_url); a_elem.appendChild(img_elem); diff --git a/settings.json b/settings.json index 84d40e4..c2b3357 100644 --- a/settings.json +++ b/settings.json @@ -3,7 +3,7 @@ "postgrest_url": "http://10.4.0.96:3000", "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic3BhbV9ub3RpY2VyIn0.j6-6HSBh-Wf5eQovT9cF1ZCNuxkQOqzBFtE3C8aTG3A", "website_urls": { - "leftychan.net": "https://leftychan.net" - }, - "content_directory": "/var/www/spam" + "leftychan.net": "https://leftychan.net", + "leftychan_dev": "http://localhost:8080" + } }