mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 17:57:52 +01:00
oops
This commit is contained in:
parent
9adc242445
commit
a9e0acbd0a
1 changed files with 10 additions and 9 deletions
|
@ -343,14 +343,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (continuation) {
|
|
||||||
const currentAuthorId = cinv.authorId;
|
|
||||||
const firstVideoAuthorId = tj.videos[0].authorId;
|
|
||||||
|
|
||||||
if (currentAuthorId !== firstVideoAuthorId) {
|
|
||||||
res.status(400).send("continuation does not match the channel :c - how tf did this happen :sob:");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cache[ID] = {
|
cache[ID] = {
|
||||||
result: {
|
result: {
|
||||||
|
@ -379,6 +372,14 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (continuation) {
|
||||||
|
const currentAuthorId = ID;
|
||||||
|
const firstVideoAuthorId = tj.videos[0].authorId;
|
||||||
|
|
||||||
|
if (currentAuthorId !== firstVideoAuthorId) {
|
||||||
|
res.status(400).send("continuation does not match the channel :c - how tf did this happen :sob:");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
renderTemplate(res, req, "channel.ejs", {
|
renderTemplate(res, req, "channel.ejs", {
|
||||||
ID,
|
ID,
|
||||||
|
|
Loading…
Reference in a new issue