From 72b4fec29e56d861db5977274f3f885aaaee1020 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 9 Dec 2021 17:01:31 +0100 Subject: [PATCH] anonymous channel if telegram --- src/inc/routes/index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inc/routes/index.mjs b/src/inc/routes/index.mjs index b52c838..87e9f47 100644 --- a/src/inc/routes/index.mjs +++ b/src/inc/routes/index.mjs @@ -96,7 +96,7 @@ export default (router, tpl) => { data = { user: { name: query.username, - channel: query.userchannel, + channel: query.usernetwork == "Telegram" && query.userchannel !== "f0ck.me" ? "anonymous" : query.userchannel, network: query.usernetwork }, item: { @@ -187,7 +187,7 @@ export default (router, tpl) => { router.get(/^\/(about)$/, (req, res) => { res.reply({ - body: tpl.render(req.url.split[0], {}, req) + body: tpl.render(req.url.split[0], { tmp: null }, req) }); });