Allow epilogue to update posts

This commit is contained in:
2023-12-02 12:06:15 +11:00
parent fb545d8af8
commit c0c50bc107

View File

@@ -13,7 +13,8 @@ module Micropub
post = post_repo.fetch!(slug)
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)
attrs_to_replace = {}