From e5789c4b67935621d33747e7bebab7b123002b89 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 20 Feb 2023 15:44:30 +0000 Subject: [PATCH] add priv-custom :3 --- src/libpoketube/init/pages-static.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index 7475b633..0043bc4f 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -24,7 +24,11 @@ module.exports = function (app, config, renderTemplate) { var html_location = "./css/"; app.get("/privacy", function (req, res) { + if ( req.hostname == "poketube.fun" || req.hostname == "poketube.site" || req.hostname == "poketube.online" || req.hostname == "poketube.xyz" ) { renderTemplate(res, req, "priv.ejs"); + } else { + renderTemplate(res, req, "priv-custom.ejs"); + } }); app.get("/143", function (req, res) {