about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-18 21:13:12 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-18 21:13:12 -0500
commit879a4a80290b9e122fd9fc007cc7bd0a2d44c561 (patch)
treeec7e8aa79ca48394c9f249e37868b46a101d12b8 /app
parentd620d1749d93d60a52a3c52115bfe4f1abdfa791 (diff)
unbreak logic
Diffstat (limited to 'app')
-rw-r--r--app/lib/sanitize_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
index 882b59b79..4ec42d64b 100644
--- a/app/lib/sanitize_config.rb
+++ b/app/lib/sanitize_config.rb
@@ -27,7 +27,7 @@ class Sanitize
       return if node['href'].blank? || node.text.blank?
 
       class_list = node['class']&.split(/[\t\n\f\r ]/)
-      return if class_list && class_list.include?('mention') || class_list.include?('hashtag')
+      return if class_list && (class_list.include?('mention') || class_list.include?('hashtag'))
 
       # href matches link text verbatim?
       href = node['href']