From 0509038a45257bde9fd079d1a8a6ac3c0a97ed27 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 28 Apr 2024 08:12:10 +1000 Subject: [PATCH] Handle like creation --- slices/micropub/actions/webmentions/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slices/micropub/actions/webmentions/create.rb b/slices/micropub/actions/webmentions/create.rb index eb0c649..2e88c8f 100644 --- a/slices/micropub/actions/webmentions/create.rb +++ b/slices/micropub/actions/webmentions/create.rb @@ -24,7 +24,7 @@ module Micropub }.to_json res.status = 202 in Success[:like, like] - slug = req.params[:"like-of"].split("/").last + slug = req.params[:post][:"like-of"].split("/").last post = post_repo.fetch!(slug) reply[:post_id] = post.id