embedded_schema do
field(:banner, :map, default: %{})
- field(:background, :string, default: nil)
+ field(:background, :map, default: %{})
field(:source_data, :map, default: %{})
field(:note_count, :integer, default: 0)
field(:follower_count, :integer, default: 0)
field(:uri, :string, default: nil)
field(:topic, :string, default: nil)
field(:hub, :string, default: nil)
- # topic, subject, salmon, subscribe_address, uri
+ field(:salmon, :string, default: nil)
+
+ # Found in the wild
+ # ap_id -> Where is this used?
+ # bio -> Where is this used?
+ # avatar -> Where is this used?
+ # fqn -> Where is this used?
+ # host -> Where is this used?
+ # subject _> Where is this used?
end
def set_activation_status(info, deactivated) do
:magic_key,
:uri,
:hub,
- :topic
+ :topic,
+ :salmon
])
end
|> cast(params, [
:locked,
:no_rich_text,
- :default_scope
+ :default_scope,
+ :banner,
+ :background
+ ])
+ end
+
+ def mastodon_profile_update(info, params) do
+ info
+ |> cast(params, [
+ :locked,
+ :banner
])
end