Web.TwitterAPI.UserView: Also view local user emojis
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 22 Feb 2019 21:35:47 +0000 (22:35 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 3 May 2019 14:27:51 +0000 (16:27 +0200)
lib/pleroma/web/twitter_api/views/user_view.ex

index ea015b8f05549b19a4a5721af4b1093349a654a0..6857055c95bd358f4aae08008c9d389459eba49f 100644 (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 =