diff options
Diffstat (limited to 'routes/post.go')
-rw-r--r-- | routes/post.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/post.go b/routes/post.go index ac722be..813f53d 100644 --- a/routes/post.go +++ b/routes/post.go @@ -12,14 +12,15 @@ import ( ) func PostGet(ctx *fiber.Ctx) error { + actor, err := activitypub.GetActorByNameFromDB(ctx.Params("actor")) if err != nil { - return err + return nil } // this is a activitpub json request return json instead of html page if activitypub.AcceptActivity(ctx.Get("Accept")) { - activitypub.GetActorPost(ctx, ctx.Path()) + GetActorPost(ctx, ctx.Path()) return nil } |