1
0
Fork 0
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:
Matt Jankowski 2024-06-03 09:33:12 -04:00
parent 2ed13071ef
commit 0d1f6af6b0

View file

@ -21,7 +21,7 @@ class Sanitize
gemini gemini
).freeze ).freeze
CLASS_WHITELIST_TRANSFORMER = lambda do |env| ALLOWED_CLASS_TRANSFORMER = lambda do |env|
node = env[:node] node = env[:node]
class_list = node['class']&.split(/[\t\n\f\r ]/) class_list = node['class']&.split(/[\t\n\f\r ]/)
@ -84,7 +84,7 @@ class Sanitize
protocols: {}, protocols: {},
transformers: [ transformers: [
CLASS_WHITELIST_TRANSFORMER, ALLOWED_CLASS_TRANSFORMER,
TRANSLATE_TRANSFORMER, TRANSLATE_TRANSFORMER,
UNSUPPORTED_ELEMENTS_TRANSFORMER, UNSUPPORTED_ELEMENTS_TRANSFORMER,
UNSUPPORTED_HREF_TRANSFORMER, UNSUPPORTED_HREF_TRANSFORMER,