Fix category parsing for form requests

This commit is contained in:
2023-02-01 21:41:58 +11:00
parent 6067d7f0ef
commit 17510a848b

View File

@@ -67,7 +67,7 @@ module Adamantium
new_params[:name] = params[:name]
new_params[:slug] = params[:slug] || params["mp-slug"]
new_params[:published_at] = (params[:"post-status"] == "draft") ? nil : publish_time
new_params[:category] = params[:category].split(",") || []
new_params[:category] = params[:category] || []
new_params[:photos] = params[:photo] || []
content = if params[:content]