From 04dfedc3310817c9f5a377ac4d78f557940e7fd0 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 29 Jan 2023 12:34:32 +1100 Subject: [PATCH] Fix param parsing --- lib/adamantium/micropub_request_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adamantium/micropub_request_parser.rb b/lib/adamantium/micropub_request_parser.rb index 6e43496..f380e9e 100644 --- a/lib/adamantium/micropub_request_parser.rb +++ b/lib/adamantium/micropub_request_parser.rb @@ -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