Photo parsing for Form request

This commit is contained in:
2024-02-24 15:56:41 +11:00
parent 35aa5bd3f3
commit 0935902f74

View File

@@ -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