diff --git a/src/inc/routeinc/f0cklib.mjs b/src/inc/routeinc/f0cklib.mjs
index 78c5e91..d5170f4 100644
--- a/src/inc/routeinc/f0cklib.mjs
+++ b/src/inc/routeinc/f0cklib.mjs
@@ -173,7 +173,7 @@ export default {
success: true,
user: {
name: actitem.username,
- channel: actitem.usernetwork == "Telegram" && actitem.userchannel !== "w0bm.com" ? "anonymous" : actitem.userchannel,
+ channel: actitem.usernetwork == "Telegram" && actitem.userchannel !== cfg.websrv.domain ? "anonymous" : actitem.userchannel,
network: actitem.usernetwork
},
item: {
@@ -182,7 +182,7 @@ export default {
long: actitem.src,
short: url.parse(actitem.src).hostname,
},
- thumbnail: `${cfg.websrv.paths.thumbnails}/${actitem.id}.png`,
+ thumbnail: `${cfg.websrv.paths.thumbnails}/${actitem.id}.webp`,
coverart: coverart ? `${cfg.websrv.paths.coverarts}/${actitem.id}.webp` : '/s/img/music.webp',
dest: `${cfg.websrv.paths.images}/${actitem.dest}`,
mime: actitem.mime,
@@ -194,7 +194,7 @@ export default {
favorites: favorites,
tags: tags
},
- title: `${actitem.id} - w0bm.com`,
+ title: `${actitem.id} - ${cfg.websrv.domain}`,
pagination: {
end: items[items.length - 1]?.id,
start: items[0]?.id,
diff --git a/src/index.mjs b/src/index.mjs
index 63218cf..3f8938e 100644
--- a/src/index.mjs
+++ b/src/index.mjs
@@ -144,7 +144,8 @@ process.on('unhandledRejection', err => {
tpl.globals = {
lul: cfg.websrv.lul,
themes: cfg.websrv.themes,
- modes: cfg.allowedModes
+ modes: cfg.allowedModes,
+ domain: cfg.websrv.domain || 'w0bm.com'
};
router.use(tpl);
diff --git a/views/snippets/header.html b/views/snippets/header.html
index aee4c89..e948558 100644
--- a/views/snippets/header.html
+++ b/views/snippets/header.html
@@ -10,7 +10,17 @@
@if(typeof item !== 'undefined')
- @endif
+
+
+
+
+
+
+
+
+
+
+ @endif