Post inline images when syndicating

This commit is contained in:
2024-03-09 17:57:58 +11:00
parent 160cd3dd31
commit ce18d419c8
4 changed files with 24 additions and 7 deletions

View File

@@ -36,7 +36,8 @@ module Micropub
if req_entity && verify_scope(req: req, scope: :create)
Dry::Matcher::ResultMatcher.call(create_entry.call(req_entity: req_entity)) do |m|
m.success do |post|
res.headers["Location"] = "#{settings.micropub_site_url}/#{post.value!.post_type}/#{post.value!.slug}"
post_type = (post.value!.post_type == :bookmark) ? :bookmark : :post
res.headers["Location"] = "#{settings.micropub_site_url}/#{post_type}/#{post.value!.slug}"
res.status = 201
end