Handle like creation

This commit is contained in:
2024-04-28 08:12:10 +10:00
parent cb4ae81252
commit 0509038a45

View File

@@ -24,7 +24,7 @@ module Micropub
}.to_json }.to_json
res.status = 202 res.status = 202
in Success[:like, like] in Success[:like, like]
slug = req.params[:"like-of"].split("/").last slug = req.params[:post][:"like-of"].split("/").last
post = post_repo.fetch!(slug) post = post_repo.fetch!(slug)
reply[:post_id] = post.id reply[:post_id] = post.id