added code\path fields without html tags in ets

This commit is contained in:
Maksim Pechnikov 2019-08-29 06:22:18 +03:00
commit d7808b5db4
7 changed files with 93 additions and 74 deletions

View file

@ -435,7 +435,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
def emoji_from_profile(%{info: _info} = user) do
(Formatter.get_emoji(user.bio) ++ Formatter.get_emoji(user.name))
|> Enum.map(fn {shortcode, url, _} ->
|> Enum.map(fn {shortcode, url, _, _, _} ->
%{
"type" => "Emoji",
"icon" => %{"type" => "Image", "url" => "#{Endpoint.url()}#{url}"},