devel #267
1 changed files with 8 additions and 0 deletions
|
@ -99,6 +99,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|
||||||
|> Enum.into(replace_attrs)
|
|> Enum.into(replace_attrs)
|
||||||
|> Enum.into(add_attrs)
|
|> Enum.into(add_attrs)
|
||||||
|
|
||||||
|
Logger.info("Update attributes: #{inspect(attrs)}")
|
||||||
|
|
||||||
{:ok, attrs}
|
{:ok, attrs}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -164,6 +166,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|
||||||
|> get_base_attrs()
|
|> get_base_attrs()
|
||||||
|> get_channel(channel_id)
|
|> get_channel(channel_id)
|
||||||
|
|
||||||
|
Logger.info("Note attributes: #{inspect(attrs)}")
|
||||||
|
|
||||||
{:ok, attrs}
|
{:ok, attrs}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -177,6 +181,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|
||||||
|> Map.put_new(:url, url)
|
|> Map.put_new(:url, url)
|
||||||
|> Map.put_new(:kind, :bookmark)
|
|> Map.put_new(:kind, :bookmark)
|
||||||
|
|
||||||
|
Logger.info("Bookmark attributes: #{inspect(attrs)}")
|
||||||
|
|
||||||
{:ok, attrs}
|
{:ok, attrs}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -197,6 +203,8 @@ defmodule ChiyaWeb.Indie.Micropub do
|
||||||
published_at: published_at
|
published_at: published_at
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logger.info("Base attributes: #{inspect(attrs)}")
|
||||||
|
|
||||||
attrs
|
attrs
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue