remove content_directory arg
This commit is contained in:
parent
1a1f039be5
commit
ab23fb6ab4
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue