mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 17:29:02 +01:00
sort by!!
This commit is contained in:
parent
43a78e5a92
commit
087d1a571d
1 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.query.continuation) {
|
if (req.query.continuation) {
|
||||||
var continuation = req.query.continuation;
|
var continuation = `&continuation=${req.query.continuation}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req.query.continuation) {
|
if (!req.query.continuation) {
|
||||||
|
@ -145,7 +145,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
try {
|
try {
|
||||||
//videos
|
//videos
|
||||||
const a = await modules
|
const a = await modules
|
||||||
.fetch(`https://inv.vern.cc/api/v1/channels/videos/${ID}/`)
|
.fetch(`https://inv.zzls.xyz/api/v1/channels/videos/${ID}/?sort_by=${req.query.sort_by || "newest"}` + continuation)
|
||||||
.then((res) => res.text());
|
.then((res) => res.text());
|
||||||
|
|
||||||
var tj = await getJson(a);
|
var tj = await getJson(a);
|
||||||
|
@ -189,6 +189,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
ID,
|
ID,
|
||||||
tab,
|
tab,
|
||||||
j: k,
|
j: k,
|
||||||
|
sort:req.query.sort_by,
|
||||||
tj,
|
tj,
|
||||||
c,
|
c,
|
||||||
convert,
|
convert,
|
||||||
|
|
Loading…
Reference in a new issue