Add email comments to posts

This commit is contained in:
2024-03-10 13:21:06 +11:00
parent c52e7fe87f
commit 273be35a61
12 changed files with 129 additions and 32 deletions

View File

@@ -10,6 +10,7 @@ module Admin
def call(params:)
attrs_to_replace = {}
attrs_to_replace[:content] = markdown.call(content: params[:body]) if params[:body]
attrs_to_replace[:commentable] = params[:commentable]
tags = params[:tags].split(",").map(&:strip)