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

View File

@ -67,6 +67,8 @@ defmodule Pleroma.Web.TwitterAPI.UserView 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 =