Fix formating. Aparently my pre-commit hook broke.

This commit is contained in:
Rin Toshaka 2018-12-30 20:16:42 +01:00
parent 62af23bd26
commit 3f9da55adc

View File

@ -39,7 +39,10 @@ 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, [])
@ -155,7 +162,10 @@ defmodule Pleroma.HTML.Transform.MediaProxy do
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