Content parsing
This commit is contained in:
@@ -53,7 +53,7 @@ module Micropub
|
||||
|
||||
new_params = if req_type == :json
|
||||
content = if params[:properties][:content]
|
||||
if params[:properties][:content].is_a?(Array) && params[:properties][:content].first[:html]
|
||||
if params[:properties][:content].is_a?(Array) && params[:properties][:content].first.is_a?(Hash)
|
||||
params[:properties][:content].first[:html]
|
||||
else
|
||||
params[:properties][:content].first&.tr("\n", " ")
|
||||
|
Reference in New Issue
Block a user