Support "like" web mentions
This commit is contained in:
@@ -18,6 +18,17 @@ module Micropub
|
||||
|
||||
reply[:post_id] = post.id
|
||||
|
||||
webmentions_repo.create(reply)
|
||||
res.body = {
|
||||
result: "Webmention was successful"
|
||||
}.to_json
|
||||
res.status = 202
|
||||
in Success[:like, like]
|
||||
slug = req.params[:"like-of"].split("/").last
|
||||
post = post_repo.fetch!(slug)
|
||||
|
||||
reply[:post_id] = post.id
|
||||
|
||||
webmentions_repo.create(reply)
|
||||
res.body = {
|
||||
result: "Webmention was successful"
|
||||
|
Reference in New Issue
Block a user