Allow multiple photos for string URLs
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user