fix(backend): fix typo [ci skip]

This commit is contained in:
かっこかり 2026-05-20 22:44:45 +09:00 committed by GitHub
commit e400731bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ export class JsonLdCacheFrozenError extends JsonLdError {
}
}
export class JsonLdForbiddenDriectiveError extends JsonLdError {
export class JsonLdForbiddenDirectiveError extends JsonLdError {
constructor(public directive: string) {
super('0297f79b-0ed9-4b6c-875f-b0a82ff96781', `${directive} is forbidden by Misskey in ActivityPub documents`);
}
@ -157,7 +157,7 @@ export class JsonLd {
const object = value;
for (const [key, value] of Object.entries(object)) {
if (JsonLd.forbiddenDirectives.has(key)) {
throw new JsonLdForbiddenDriectiveError(key);
throw new JsonLdForbiddenDirectiveError(key);
}
if (typeof value === 'object' && value !== null) {