From 0935902f743871d173ca353b99979b53e3f8a99a Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 24 Feb 2024 15:56:41 +1100 Subject: [PATCH] Photo parsing for Form request --- slices/micropub/request_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slices/micropub/request_parser.rb b/slices/micropub/request_parser.rb index 273bb7b..e619c38 100644 --- a/slices/micropub/request_parser.rb +++ b/slices/micropub/request_parser.rb @@ -83,7 +83,7 @@ module Micropub }) else photos = if params[:photo].is_a?(String) - {value: params[:photo], alt: ""} + [{value: params[:photo], alt: ""}] elsif params[:photo].nil? [] else