diff options
author | FChannel <> | 2022-06-16 17:49:44 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 54a0578dbc5eb65cd84ec1a67b2b36a4fbfb73ee (patch) | |
tree | 2dbdbc1869e197e03182054051202466ca9dd562 /route/routes | |
parent | 6237c9ac3213d2efed516c56881474dcaa508935 (diff) |
fix for routing to correct thread from child post
Diffstat (limited to 'route/routes')
-rw-r--r-- | route/routes/actor.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/route/routes/actor.go b/route/routes/actor.go index f5bfb4c..c35e57a 100644 --- a/route/routes/actor.go +++ b/route/routes/actor.go @@ -13,6 +13,7 @@ import ( "github.com/FChannel0/FChannel-Server/activitypub" "github.com/FChannel0/FChannel-Server/config" + "github.com/FChannel0/FChannel-Server/db" "github.com/FChannel0/FChannel-Server/post" "github.com/FChannel0/FChannel-Server/route" "github.com/FChannel0/FChannel-Server/util" @@ -373,7 +374,7 @@ func ActorPost(ctx *fiber.Ctx) error { re := regexp.MustCompile("\\w+$") postId := re.FindString(ctx.Path()) - inReplyTo := actor.Id + "/" + postId + inReplyTo, _ := db.GetPostIDFromNum(postId) // check if actually OP if not redirect to op to get full thread var obj = activitypub.ObjectBase{Id: inReplyTo} |