Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
85434669
Verified
Commit
85434669
authored
Feb 22, 2019
by
Haelwenn
Browse files
Web.TwitterAPI.UserView: Also view local user emojis
parent
2f76a40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/views/user_view.ex
View file @
85434669
...
...
@@ -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
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment