mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:08:05 +01:00
hm
This commit is contained in:
parent
cd27910117
commit
e01174182c
1 changed files with 15 additions and 13 deletions
|
@ -317,21 +317,23 @@ var [tj, shorts, playlist, stream, c] = await Promise.all([
|
|||
|
||||
|
||||
|
||||
|
||||
if (continuation) {
|
||||
const currentAuthorId = String(cinv.authorId).trim();
|
||||
const firstVideoAuthorId = String(tj.videos[0].authorId).trim();
|
||||
|
||||
if (currentAuthorId.localeCompare(firstVideoAuthorId) !== 0) {
|
||||
res.status(400).send("Continuation does not match the channel :c");
|
||||
}
|
||||
if (tj) {
|
||||
if (continuation) {
|
||||
const currentAuthorId = String(cinv.authorId).trim();
|
||||
const firstVideoAuthorId = String(tj.videos[0].authorId).trim();
|
||||
|
||||
if (currentAuthorId.localeCompare(firstVideoAuthorId) !== 0) {
|
||||
res.status(400).send("Continuation does not match the channel :c");
|
||||
return; // Exit the function after sending the response
|
||||
}
|
||||
}
|
||||
|
||||
const ChannelFirstVideoObject = await fetch(
|
||||
`${config.invapi}/videos/${tj.videos[0].videoId}`
|
||||
)
|
||||
.then((res) => res.text())
|
||||
.then((txt) => getJson(txt));
|
||||
var ChannelFirstVideoObject = await fetch(
|
||||
`${config.invapi}/videos/${tj.videos[0].videoId}`
|
||||
)
|
||||
.then((res) => res.text())
|
||||
.then((txt) => getJson(txt));
|
||||
}
|
||||
|
||||
renderTemplate(res, req, "channel.ejs", {
|
||||
ID,
|
||||
|
|
Loading…
Reference in a new issue