Skip to content

Commit

Permalink
feat(mastodon): add 'fosstodon.org' to allowed site list
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Nov 15, 2024
1 parent b857abc commit e8f020e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/mastodon/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parseDate } from '@/utils/parse-date';
import { config } from '@/config';
import ConfigNotFoundError from '@/errors/types/config-not-found';

const allowSiteList = ['mastodon.social', 'pawoo.net', config.mastodon.apiHost].filter(Boolean);
const allowSiteList = ['mastodon.social', 'pawoo.net', 'fosstodon.org', config.mastodon.apiHost].filter(Boolean);

const apiHeaders = (site) => {
const { accessToken, apiHost } = config.mastodon;
Expand Down

0 comments on commit e8f020e

Please sign in to comment.