[#394] User view (Twitter & Mastadon API): wrapped "tags" in "pleroma" map.
This commit is contained in:
parent
abbf347dc7
commit
7a2162bbcb
4 changed files with 14 additions and 8 deletions
|
|
@ -59,8 +59,11 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
|
|||
privacy: user_info.default_scope,
|
||||
sensitive: false
|
||||
},
|
||||
|
||||
# Pleroma extension
|
||||
tags: user.tags
|
||||
pleroma: %{
|
||||
tags: user.tags
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -78,8 +78,11 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
|
|||
"default_scope" => user.info.default_scope,
|
||||
"no_rich_text" => user.info.no_rich_text,
|
||||
"fields" => fields,
|
||||
|
||||
# Pleroma extension
|
||||
"tags" => user.tags
|
||||
"pleroma" => %{
|
||||
"tags" => user.tags
|
||||
}
|
||||
}
|
||||
|
||||
if assigns[:token] do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue