Refactor post creation + syndication

This commit is contained in:
2023-02-12 21:58:18 +11:00
parent b3b287bbf4
commit 2b81839127
5 changed files with 46 additions and 33 deletions

View File

@@ -9,7 +9,9 @@ module Adamantium
post = post_repo.fetch!(slug)
if params.key? :replace
post_repo.update(post.id, {content: markdown.call(content: params[:replace][:content].first)})
post_repo.update(post.id, {
content: markdown.call(content: params[:replace][:content].first)
})
end
if params.key? :add
@@ -17,7 +19,6 @@ module Adamantium
end
if params.key? :delete
end
end
end