diff --git a/slices/micropub/request_parser.rb b/slices/micropub/request_parser.rb index ce3be15..49acf93 100644 --- a/slices/micropub/request_parser.rb +++ b/slices/micropub/request_parser.rb @@ -84,8 +84,10 @@ module Micropub end elsif params[:properties][:photo].is_a?(Hash) params[:properties][:photo] - elsif params[:properties][:photo] - {value: params[:properties][:photo], alt: ""} + elsif params[:properties][:photo].is_a?(String) + params[:properties][:photo].split(" ").map do |photo| + {value: photo, alt: ""} + end else [] end