anonymous channel if telegram

This commit is contained in:
Flummi 2021-12-09 17:01:31 +01:00
parent f89214f062
commit 72b4fec29e

View File

@ -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)
});
});