Web.TwitterAPI.UserView: Also view local user emojis

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-02-22 22:35:47 +01:00
parent 2f76a40d02
commit 85434669bb
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ defp do_render("user.json", %{user: user = %User{}} = assigns) do
{String.trim(name, ":"), url}
end)
emoji = Enum.dedup(emoji ++ user.info.emoji)
# ``fields`` is an array of mastodon profile field, containing ``{"name": "…", "value": "…"}``.
# For example: [{"name": "Pronoun", "value": "she/her"}, …]
fields =