Skip to content
GitLab
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
3f9da55a
Commit
3f9da55a
authored
Dec 30, 2018
by
Rin Toshaka
Browse files
Fix formating. Aparently my pre-commit hook broke.
parent
62af23bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/html.ex
View file @
3f9da55a
...
...
@@ -38,8 +38,11 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
require
HtmlSanitizeEx
.
Scrubber
.
Meta
alias
HtmlSanitizeEx
.
Scrubber
.
Meta
def
version
do
0
end
def
version
do
0
end
Meta
.
remove_cdata_sections_before_scrub
()
Meta
.
strip_comments
()
...
...
@@ -77,7 +80,11 @@ defmodule Pleroma.HTML.Scrubber.Default do
require
HtmlSanitizeEx
.
Scrubber
.
Meta
alias
HtmlSanitizeEx
.
Scrubber
.
Meta
def
version
do
0
end
def
version
do
0
end
@markup
Application
.
get_env
(
:pleroma
,
:markup
)
@uri_schemes
Application
.
get_env
(
:pleroma
,
:uri_schemes
,
[])
@valid_schemes
Keyword
.
get
(
@uri_schemes
,
:valid_schemes
,
[])
...
...
@@ -154,8 +161,11 @@ defmodule Pleroma.HTML.Transform.MediaProxy do
@moduledoc
"Transforms inline image URIs to use MediaProxy."
alias
Pleroma
.
Web
.
MediaProxy
def
version
do
0
end
def
version
do
0
end
def
before_scrub
(
html
),
do
:
html
def
scrub_attribute
(
"img"
,
{
"src"
,
"http"
<>
target
})
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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