aboutsummaryrefslogtreecommitdiff
path: root/routes/post.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-07 21:21:38 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitf7bf818d29393ceaccf4d2906557351fa6a4f49f (patch)
tree723e542c8cf0db1e7e64923718977138db77b58d /routes/post.go
parent3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 (diff)
added error func and general cleanup/organization
Diffstat (limited to 'routes/post.go')
-rw-r--r--routes/post.go5
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
}