diff --git a/slices/micropub/request_parser.rb b/slices/micropub/request_parser.rb index 49acf93..017d19e 100644 --- a/slices/micropub/request_parser.rb +++ b/slices/micropub/request_parser.rb @@ -106,7 +106,9 @@ module Micropub }) else photos = if params[:photo].is_a?(String) - [{value: params[:photo], alt: ""}] + params[:photo].split(" ").map do |photo| + {value: photo, alt: ""} + end elsif params[:photo].nil? [] else