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 = { data = {
user: { user: {
name: query.username, name: query.username,
channel: query.userchannel, channel: query.usernetwork == "Telegram" && query.userchannel !== "f0ck.me" ? "anonymous" : query.userchannel,
network: query.usernetwork network: query.usernetwork
}, },
item: { item: {
@ -187,7 +187,7 @@ export default (router, tpl) => {
router.get(/^\/(about)$/, (req, res) => { router.get(/^\/(about)$/, (req, res) => {
res.reply({ res.reply({
body: tpl.render(req.url.split[0], {}, req) body: tpl.render(req.url.split[0], { tmp: null }, req)
}); });
}); });