Verified Commit 85434669 authored by Haelwenn's avatar Haelwenn
Browse files

Web.TwitterAPI.UserView: Also view local user emojis

parent 2f76a40d
...@@ -67,6 +67,8 @@ defp do_render("user.json", %{user: user = %User{}} = assigns) do ...@@ -67,6 +67,8 @@ defp do_render("user.json", %{user: user = %User{}} = assigns) do
{String.trim(name, ":"), url} {String.trim(name, ":"), url}
end) end)
emoji = Enum.dedup(emoji ++ user.info.emoji)
# ``fields`` is an array of mastodon profile field, containing ``{"name": "…", "value": "…"}``. # ``fields`` is an array of mastodon profile field, containing ``{"name": "…", "value": "…"}``.
# For example: [{"name": "Pronoun", "value": "she/her"}, …] # For example: [{"name": "Pronoun", "value": "she/her"}, …]
fields = fields =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment