Move new fields to pleroma object
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
c802f3b7f6
commit
3498662712
3 changed files with 10 additions and 13 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue