Fix in-reply path

This commit is contained in:
2024-03-22 19:03:38 +11:00
parent 648daf66f2
commit ed48a8452e

View File

@@ -13,7 +13,7 @@ module Micropub
webmention = webmention_parser.call(params: req.params)
case webmention
in Success[:reply, reply]
slug = req.params[:"in-reply-to"].split("/").last
slug = req.params[:post][:"in-reply-to"].split("/").last
post = post_repo.fetch!(slug)
reply[:post_id] = post.id