From 39012c6b17073f6933a5ead8beed64df555f7348 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Fri, 6 May 2022 22:45:27 -0700 Subject: converting functions to activitypub object functions --- routes/post.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/post.go') diff --git a/routes/post.go b/routes/post.go index 7ed9e7d..1634346 100644 --- a/routes/post.go +++ b/routes/post.go @@ -31,8 +31,8 @@ func PostGet(ctx *fiber.Ctx) error { re := regexp.MustCompile("f(\\w|[!@#$%^&*<>])+-(\\w|[!@#$%^&*<>])+") - if re.MatchString(postId) { // if non local actor post - name := activitypub.GetActorFollowNameFromPath(postId) + if re.MatchString(ctx.Path()) { // if non local actor post + name := activitypub.GetActorFollowNameFromPath(ctx.Path()) followActors, err := webfinger.GetActorsFollowFromName(actor, name) if err != nil { -- cgit v1.2.3