Fix param parsing

This commit is contained in:
2023-01-29 12:34:32 +11:00
parent 1ef31b9cb9
commit 04dfedc331

View File

@@ -51,7 +51,7 @@ module Adamantium
new_params[:h] = "entry"
new_params[:post_type] = post_type
new_params[:action] = params[:action]
new_params[:syndicate_to] = params["mp-syndicate-to"].split(",") || []
new_params[:syndicate_to] = params[:"mp-syndicate-to"]&.split(",") || []
publish_time = params[:published_at] || Time.now