Skip to content
Snippets Groups Projects
Commit 37b80268 authored by eal's avatar eal
Browse files

HTML-sanitize usernames before emojifying.

parent ed9738e0
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ defmodule Pleroma.Web.TwitterAPI.UserView do
"friends_count" => user_info[:following_count],
"id" => user.id,
"name" => user.name,
"name_html" => Formatter.emojify(user.name, emoji),
"name_html" => HtmlSanitizeEx.strip_tags(user.name) |> Formatter.emojify(emoji),
"profile_image_url" => image,
"profile_image_url_https" => image,
"profile_image_url_profile_size" => image,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment