Merge pull request 'fix federation hosts incorrectly being set to blocked hosts' (#23) from 21-fix-federation-whitelist into dev

Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/23
Reviewed-by: fangmarks <fangmarks@noreply.codeberg.org>
This commit is contained in:
zima 2024-12-06 19:12:35 +00:00
commit 597a1bd47a

View file

@ -709,7 +709,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}
if (Array.isArray(ps.federationHosts)) {
set.blockedHosts = ps.federationHosts.filter(Boolean).map(x => x.toLowerCase());
set.federationHosts = ps.federationHosts.filter(Boolean).map(x => x.toLowerCase());
}
const before = await this.metaService.fetch(true);