diff --git a/slices/micropub/request_parser.rb b/slices/micropub/request_parser.rb index ae3d5e5..15ab450 100644 --- a/slices/micropub/request_parser.rb +++ b/slices/micropub/request_parser.rb @@ -53,7 +53,7 @@ module Micropub new_params = if req_type == :json content = if params[:properties][:content] - if params[:properties][:content].is_a?(Hash) && params[:properties][:content][:html] + if params[:properties][:content].is_a?(Array) && params[:properties][:content].first[:html] params[:properties][:content][:html] else params[:properties][:content].first&.tr("\n", " ")