From 526a1948ec582b7bc195260deec05e0fd7dc3fd5 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 4 Mar 2024 22:21:48 +0800 Subject: [PATCH] feat: add configed host to mastodon allow list --- lib/routes/mastodon/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/mastodon/utils.ts b/lib/routes/mastodon/utils.ts index 8383b9384..2d4d9193b 100644 --- a/lib/routes/mastodon/utils.ts +++ b/lib/routes/mastodon/utils.ts @@ -4,7 +4,7 @@ import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; import { config } from '@/config'; -const allowSiteList = ['mastodon.social', 'pawoo.net']; +const allowSiteList = ['mastodon.social', 'pawoo.net', config.mastodon.apiHost]; const apiHeaders = (site) => { const { accessToken, apiHost } = config.mastodon;