From 22ba03ae4dc01802fcfebd2b4ef2f65311e2cbad Mon Sep 17 00:00:00 2001
From: erik <erik.seiert@meissa-gmbh.de>
Date: Thu, 30 Nov 2023 16:01:20 +0100
Subject: [PATCH] Don't use redundant implementation of person

---
 routers/api/v1/activitypub/repository.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go
index b0928d9a32..3250c00166 100644
--- a/routers/api/v1/activitypub/repository.go
+++ b/routers/api/v1/activitypub/repository.go
@@ -120,7 +120,8 @@ func RepositoryInbox(ctx *context.APIContext) {
 	}
 
 	// parse response
-	person, err := forgefed.ParsePersonJson(body)
+	person := ap.Person{}
+	err = person.UnmarshalJSON(body)
 	if err != nil {
 		panic(err)
 	}