Allow epilogue to update posts
This commit is contained in:
@@ -13,7 +13,8 @@ module Micropub
|
|||||||
post = post_repo.fetch!(slug)
|
post = post_repo.fetch!(slug)
|
||||||
|
|
||||||
if params.key? :replace
|
if params.key? :replace
|
||||||
content = params[:replace].delete(:content).first
|
content = params[:replace].delete(:content)
|
||||||
|
content = content.is_a?(Array) ? content.first : content
|
||||||
name = params[:replace].delete(:name)
|
name = params[:replace].delete(:name)
|
||||||
|
|
||||||
attrs_to_replace = {}
|
attrs_to_replace = {}
|
||||||
|
Reference in New Issue
Block a user