diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2024-08-17 19:59:39 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2024-08-17 19:59:39 +0200 |
commit | 3498662712c088cf578e7241c12aa1e5da42745a (patch) | |
tree | 95d097a21d59f1b259b16d3db4eddaf344a97cd5 /lib | |
parent | c802f3b7f61e1c4bbe2f4eec757802e30f88b6a5 (diff) | |
download | pleroma-3498662712c088cf578e7241c12aa1e5da42745a.tar.gz pleroma-3498662712c088cf578e7241c12aa1e5da42745a.zip |
Move new fields to pleroma object
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/account.ex | 8 | ||||
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/account.ex b/lib/pleroma/web/api_spec/schemas/account.ex index 3f2310df9..1f73ef60c 100644 --- a/lib/pleroma/web/api_spec/schemas/account.ex +++ b/lib/pleroma/web/api_spec/schemas/account.ex @@ -111,7 +111,9 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Account do format: :uri, nullable: true, description: "Favicon image of the user's instance" - } + }, + avatar_description: %Schema{type: :string}, + header_description: %Schema{type: :string} } }, source: %Schema{ @@ -147,9 +149,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Account do } } } - }, - avatar_description: %Schema{type: :string}, - header_description: %Schema{type: :string} + } }, example: %{ "acct" => "foobar", diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index bd8af265a..0643b8f14 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -324,10 +324,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do skip_thread_containment: user.skip_thread_containment, background_image: image_url(user.background) |> MediaProxy.url(), accepts_chat_messages: user.accepts_chat_messages, - favicon: favicon - }, - avatar_description: avatar_description, - header_description: header_description + favicon: favicon, + avatar_description: avatar_description, + header_description: header_description + } } |> maybe_put_role(user, opts[:for]) |> maybe_put_settings(user, opts[:for], opts) |