Set default content

This commit is contained in:
2023-02-25 12:58:10 +11:00
parent 0ba6dd2f38
commit e5d29b9d2f

View File

@@ -95,7 +95,7 @@ module Adamantium
new_params[:h] = "entry"
new_params[:syndication_sources] = params.dig(:properties, :syndication)
new_params[:name] = checkin.dig(:properties, :name).first
new_params[:content] = params.dig(:properties, :content)&.first
new_params[:content] = params.dig(:properties, :content)&.first || ""
new_params[:url] = checkin.dig(:properties, :url)&.first
new_params[:slug] = SecureRandom.uuid
new_params[:category] = params.dig(:properties, :category)