mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 04:37:51 +01:00
support button yaaay :3
This commit is contained in:
parent
217659f135
commit
725161f01e
1 changed files with 7 additions and 0 deletions
|
@ -124,6 +124,8 @@ function getJson(str) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const PATREON_REGEX = /https:\/\/www.patreon.com\/(?<name>[\w\d_-]+)/
|
||||||
|
|
||||||
module.exports = function (app, config, renderTemplate) {
|
module.exports = function (app, config, renderTemplate) {
|
||||||
app.get("/encryption", async function (req, res) {
|
app.get("/encryption", async function (req, res) {
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
|
@ -259,10 +261,15 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var d = false;
|
var d = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (String(json.Description) != "[object Object]"){
|
||||||
|
var support = (PATREON_REGEX.exec(json.Description) ?? {}).groups
|
||||||
|
}
|
||||||
|
|
||||||
renderTemplate(res, req, "poketube.ejs", {
|
renderTemplate(res, req, "poketube.ejs", {
|
||||||
color: data.color,
|
color: data.color,
|
||||||
color2: data.color2,
|
color2: data.color2,
|
||||||
engagement: engagement,
|
engagement: engagement,
|
||||||
|
support,
|
||||||
u,
|
u,
|
||||||
video: json,
|
video: json,
|
||||||
date: k.Video.uploadDate,
|
date: k.Video.uploadDate,
|
||||||
|
|
Loading…
Reference in a new issue