From 77b6402e7791921f735e2fbb6efae4a7e267d0b2 Mon Sep 17 00:00:00 2001
From: erik <erik.seiert@meissa-gmbh.de>
Date: Wed, 6 Dec 2023 15:37:58 +0100
Subject: [PATCH] Add missing error treatment

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

diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go
index c7c65350ef..ddc5790111 100644
--- a/routers/api/v1/activitypub/repository.go
+++ b/routers/api/v1/activitypub/repository.go
@@ -236,7 +236,9 @@ func RepositoryInbox(ctx *context.APIContext) {
 	if len(users) == 0 {
 
 		person, err := getPersonByRest(remoteStargazer, starReceiver, ctx)
-
+		if err != nil {
+			panic(fmt.Errorf("getting user failed: %v", err))
+		}
 		// create user
 		//	ToDo:	We need a remote server with federation enabled to properly test this