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
96007753
Commit
96007753
authored
Apr 02, 2018
by
lain
Browse files
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into develop
parents
360c51f1
807d243c
Pipeline
#1071
passed with stage
in 2 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/mastodon_api/views/status_view.ex
View file @
96007753
...
...
@@ -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
)
...
...
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