commit: 6bd6dcf6df37dea077c4c6af84d979a49dd058db
parent: 28d292047207231631ed8a42257eff129c018868
Author: unarist <m.unarist@gmail.com>
Date: Wed, 7 Jun 2017 22:57:30 +0900
Allow "class" attribute on the "a" tag in sanitization (#3623)
This preserves `<a ... class="u-url mention">` from other Mastodon instances.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
@@ -8,7 +8,7 @@ class Sanitize
elements: %w(p br span a),
attributes: {
- 'a' => %w(href rel),
+ 'a' => %w(href rel class),
'span' => %w(class),
},