Handle like creation
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user