Support locally cached inline images in Articles

This commit is contained in:
Darius Kazemi
2019-04-30 15:29:28 -07:00
parent 615bfe8c16
commit b3e65978b4
4 changed files with 62 additions and 3 deletions

View File

@ -34,13 +34,14 @@ class Sanitize
end
MASTODON_STRICT ||= freeze_config(
elements: %w(p br span a abbr del pre blockquote code b strong i em h1 h2 h3 h4 h5 ul ol li),
elements: %w(p br span a abbr del pre blockquote code b strong i em h1 h2 h3 h4 h5 ul ol li img),
attributes: {
'a' => %w(href rel class title),
'span' => %w(class),
'abbr' => %w(title),
'blockquote' => %w(cite),
'img' => %w(src alt),
},
add_attributes: {