Get the first content
This commit is contained in:
@@ -9,7 +9,7 @@ module Adamantium
|
|||||||
post = post_repo.fetch!(slug)
|
post = post_repo.fetch!(slug)
|
||||||
|
|
||||||
if params.key? :replace
|
if params.key? :replace
|
||||||
post_repo.update(post.id, {content: markdown.call(content: params[:replace][:content])})
|
post_repo.update(post.id, {content: markdown.call(content: params[:replace][:content].first)})
|
||||||
end
|
end
|
||||||
|
|
||||||
if params.key? :add
|
if params.key? :add
|
||||||
|
Reference in New Issue
Block a user