Log post creation

This commit is contained in:
2023-04-10 14:02:08 +10:00
parent 4729066bbc
commit d253f6f3ea
2 changed files with 4 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ module Adamantium
published_at: (params[:"post-status"] == "draft") ? nil : publish_time,
category: params[:properties][:category] || [],
name: params[:properties][:name]&.first,
content: params[:properties][:content]&.first&.tr("\n", " ") || "",
content: params[:properties][:content]&.first&.tr("\n", " "),
slug: params[:slug] || params[:"mp-slug"],
syndicate_to: Array(params[:properties][:"mp-syndicate-to"]) || [],
photos: params[:properties][:photo] || [],