Commit 807d243c authored by lain's avatar lain
Browse files

Merge branch 'fix-107' into 'develop'

masto api: run emojis through mediaproxy

Closes #107

See merge request !92
parents cd543d58 5e4bb4ad
Pipeline #1067 passed with stage
in 2 minutes and 29 seconds
......@@ -125,7 +125,11 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
(activity.data["object"]["emoji"] || [])
|> Enum.map(fn {name, url} ->
name = HtmlSanitizeEx.strip_tags(name)
url = HtmlSanitizeEx.strip_tags(url)
url =
HtmlSanitizeEx.strip_tags(url)
|> MediaProxy.url()
%{shortcode: name, url: url, static_url: url}
end)
......
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