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
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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;