diff --git a/lib/chiya_web/indie/micropub.ex b/lib/chiya_web/indie/micropub.ex index b7fb9b2..adea4ce 100644 --- a/lib/chiya_web/indie/micropub.ex +++ b/lib/chiya_web/indie/micropub.ex @@ -99,6 +99,8 @@ defmodule ChiyaWeb.Indie.Micropub do |> Enum.into(replace_attrs) |> Enum.into(add_attrs) + Logger.info("Update attributes: #{inspect(attrs)}") + {:ok, attrs} end @@ -164,6 +166,8 @@ defmodule ChiyaWeb.Indie.Micropub do |> get_base_attrs() |> get_channel(channel_id) + Logger.info("Note attributes: #{inspect(attrs)}") + {:ok, attrs} end @@ -177,6 +181,8 @@ defmodule ChiyaWeb.Indie.Micropub do |> Map.put_new(:url, url) |> Map.put_new(:kind, :bookmark) + Logger.info("Bookmark attributes: #{inspect(attrs)}") + {:ok, attrs} end @@ -197,6 +203,8 @@ defmodule ChiyaWeb.Indie.Micropub do published_at: published_at } + Logger.info("Base attributes: #{inspect(attrs)}") + attrs end