From 1cffb93d52c8b1ecf12517dddf290febfee6c3ea Mon Sep 17 00:00:00 2001
From: Jesse Wierzbinski <contact@cpluspatch.com>
Date: Mon, 26 Aug 2024 18:54:38 +0200
Subject: [PATCH] fix(federation): :bug: Allow Delete to have a null author

---
 federation/schemas/base.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/federation/schemas/base.ts b/federation/schemas/base.ts
index 445788c..76ce0d4 100644
--- a/federation/schemas/base.ts
+++ b/federation/schemas/base.ts
@@ -161,7 +161,7 @@ export const UserSchema = EntitySchema.extend({
 export const DeleteSchema = EntitySchema.extend({
     uri: z.null().optional(),
     type: z.literal("Delete"),
-    author: z.string().url(),
+    author: z.string().url().nullable(),
     deleted_type: z.string(),
     target: z.string().url(),
 });