Removed the patrons endpoint
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
16e0a1ae22
commit
b58917aabb
|
@ -32,7 +32,8 @@ import * as ep___admin_emoji_setCategoryBulk from "./endpoints/admin/emoji/set-c
|
|||
import * as ep___admin_emoji_setLicenseBulk from "./endpoints/admin/emoji/set-license-bulk.js";
|
||||
import * as ep___admin_emoji_update from "./endpoints/admin/emoji/update.js";
|
||||
import * as ep___admin_federation_deleteAllFiles from "./endpoints/admin/federation/delete-all-files.js";
|
||||
import * as ep___admin_federation_refreshRemoteInstanceMetadata from "./endpoints/admin/federation/refresh-remote-instance-metadata.js";
|
||||
import * as ep___admin_federation_refreshRemoteInstanceMetadata
|
||||
from "./endpoints/admin/federation/refresh-remote-instance-metadata.js";
|
||||
import * as ep___admin_federation_removeAllFollowing from "./endpoints/admin/federation/remove-all-following.js";
|
||||
import * as ep___admin_federation_updateInstance from "./endpoints/admin/federation/update-instance.js";
|
||||
import * as ep___admin_getIndexStats from "./endpoints/admin/get-index-stats.js";
|
||||
|
@ -283,7 +284,6 @@ import * as ep___pinnedUsers from "./endpoints/pinned-users.js";
|
|||
import * as ep___customMOTD from "./endpoints/custom-motd.js";
|
||||
import * as ep___customSplashIcons from "./endpoints/custom-splash-icons.js";
|
||||
import * as ep___latestVersion from "./endpoints/latest-version.js";
|
||||
import * as ep___patrons from "./endpoints/patrons.js";
|
||||
import * as ep___release from "./endpoints/release.js";
|
||||
import * as ep___promo_read from "./endpoints/promo/read.js";
|
||||
import * as ep___requestResetPassword from "./endpoints/request-reset-password.js";
|
||||
|
@ -631,7 +631,6 @@ const eps = [
|
|||
["custom-motd", ep___customMOTD],
|
||||
["custom-splash-icons", ep___customSplashIcons],
|
||||
["latest-version", ep___latestVersion],
|
||||
["patrons", ep___patrons],
|
||||
["release", ep___release],
|
||||
["promo/read", ep___promo_read],
|
||||
["request-reset-password", ep___requestResetPassword],
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
import define from "../define.js";
|
||||
import { redisClient } from "@/db/redis.js";
|
||||
|
||||
export const meta = {
|
||||
tags: ["meta"],
|
||||
description: "Get list of Calckey patrons from Codeberg",
|
||||
|
||||
requireCredential: false,
|
||||
requireCredentialPrivateMode: false,
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
type: "object",
|
||||
properties: {},
|
||||
required: [],
|
||||
} as const;
|
||||
|
||||
export default define(meta, paramDef, async () => {
|
||||
let patrons;
|
||||
const cachedPatrons = await redisClient.get("patrons");
|
||||
if (cachedPatrons) {
|
||||
patrons = JSON.parse(cachedPatrons);
|
||||
} else {
|
||||
patrons = await fetch(
|
||||
"https://codeberg.org/calckey/calckey/raw/branch/develop/patrons.json",
|
||||
).then((response) => response.json());
|
||||
await redisClient.set("patrons", JSON.stringify(patrons), "EX", 3600);
|
||||
}
|
||||
|
||||
return patrons["patrons"];
|
||||
});
|
61
patrons.json
61
patrons.json
|
@ -1,61 +0,0 @@
|
|||
{
|
||||
"patrons": [
|
||||
"@atomicpoet@calckey.social",
|
||||
"@shoq@mastodon.social",
|
||||
"@pikadude@erisly.social",
|
||||
"@sage@stop.voring.me",
|
||||
"@sky@therian.club",
|
||||
"@panos@electricrequiem.com",
|
||||
"@redhunt07@www.foxyhole.io",
|
||||
"@griff@stop.voring.me",
|
||||
"@cafkafk@ck.cafkafk.com",
|
||||
"@privateger@plasmatrap.com",
|
||||
"@self@neo.voidworks.cc",
|
||||
"@effy@social.effy.space",
|
||||
"@Kio@kitsunes.club",
|
||||
"@twann@tech.lgbt",
|
||||
"@surfbum@calckey.nz",
|
||||
"@topher@mastodon.online",
|
||||
"@hanicef@stop.voring.me",
|
||||
"@nmkj@calckey.jp",
|
||||
"@trapezial@calckey.jp",
|
||||
"@unattributed@calckey.social",
|
||||
"@cody@mk.codingneko.com",
|
||||
"@kate@blahaj.zone",
|
||||
"@emtk@mkkey.net",
|
||||
"@jovikowi@calckey.social",
|
||||
"@padraig@calckey.social",
|
||||
"@pancakes@cats.city",
|
||||
"@theresmiling@calckey.social",
|
||||
"@AlderForrest@calckey.social",
|
||||
"@kristian@calckey.social",
|
||||
"@jo@blahaj.zone",
|
||||
"@narF@calckey.social",
|
||||
"@AlderForrest@calckey.social",
|
||||
"@box464@calckey.social",
|
||||
"@MariaTheMartian@calckey.social",
|
||||
"@nisemikol@calckey.social",
|
||||
"@smallpatatas@calckey.patatas.ca",
|
||||
"@bayra@stop.voring.me",
|
||||
"@frost@wolfdo.gg",
|
||||
"@joebiden@fuckgov.org",
|
||||
"@nyaa@calckey.social",
|
||||
"@Dan@calckey.social",
|
||||
"@testing@stop.voring.me",
|
||||
"@dana@calckey.social",
|
||||
"@Jdreben@calckey.social",
|
||||
"@natalie@prismst.one",
|
||||
"@KelsonV@wandering.shop",
|
||||
"@breakfastmtn@calckey.social",
|
||||
"@richardazia@mastodon.social",
|
||||
"@joestone@calckey.social",
|
||||
"@aj@calckey.social",
|
||||
"@zepfanman@ramblingreaders.org",
|
||||
"@kimby@stop.voring.me",
|
||||
"@fyrfli@bkgrdclrschm.link",
|
||||
"@riversidebryan@calckey.lgbt",
|
||||
"@aRubes@sloth.run",
|
||||
"@andreasdotorg@calckey.social",
|
||||
"\nInterkosmos Link"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue