feat: add configed host to mastodon allow list

This commit is contained in:
DIYgod
2024-03-04 22:21:48 +08:00
parent ddc0fe4372
commit 526a1948ec
+1 -1
View File
@@ -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;