fix(federation): 🐛 Allow Delete to have a null author

This commit is contained in:
Jesse Wierzbinski 2024-08-26 18:54:38 +02:00
parent caadde305a
commit 1cffb93d52
No known key found for this signature in database

View file

@ -161,7 +161,7 @@ export const UserSchema = EntitySchema.extend({
export const DeleteSchema = EntitySchema.extend({ export const DeleteSchema = EntitySchema.extend({
uri: z.null().optional(), uri: z.null().optional(),
type: z.literal("Delete"), type: z.literal("Delete"),
author: z.string().url(), author: z.string().url().nullable(),
deleted_type: z.string(), deleted_type: z.string(),
target: z.string().url(), target: z.string().url(),
}); });