mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 00:17:49 +01:00
mv
This commit is contained in:
parent
867bb45e42
commit
1b2e86f5f8
1 changed files with 1 additions and 10 deletions
|
@ -230,16 +230,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
? `&continuation=${req.query.continuations}`
|
? `&continuation=${req.query.continuations}`
|
||||||
: "";
|
: "";
|
||||||
const sort_by = req.query.sort_by || "newest";
|
const sort_by = req.query.sort_by || "newest";
|
||||||
|
|
||||||
const getChannelData = async (url) => {
|
|
||||||
try {
|
|
||||||
return await fetch(url)
|
|
||||||
.then((res) => res.text())
|
|
||||||
.then((txt) => getJson(txt));
|
|
||||||
} catch (error) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const getChannelData = async (url) => {
|
const getChannelData = async (url) => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue