mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Rename transformer constant in sanitizer
This commit is contained in:
parent
aa4d8987a0
commit
ac329e3aca
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class Sanitize
|
|||
gemini
|
||||
).freeze
|
||||
|
||||
CLASS_WHITELIST_TRANSFORMER = lambda do |env|
|
||||
ALLOWED_CLASS_TRANSFORMER = lambda do |env|
|
||||
node = env[:node]
|
||||
class_list = node['class']&.split(/[\t\n\f\r ]/)
|
||||
|
||||
|
@ -84,7 +84,7 @@ class Sanitize
|
|||
protocols: {},
|
||||
|
||||
transformers: [
|
||||
CLASS_WHITELIST_TRANSFORMER,
|
||||
ALLOWED_CLASS_TRANSFORMER,
|
||||
TRANSLATE_TRANSFORMER,
|
||||
UNSUPPORTED_ELEMENTS_TRANSFORMER,
|
||||
UNSUPPORTED_HREF_TRANSFORMER,
|
||||
|
|
Loading…
Reference in a new issue