diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-18 21:13:12 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-18 21:13:12 -0500 |
commit | 879a4a80290b9e122fd9fc007cc7bd0a2d44c561 (patch) | |
tree | ec7e8aa79ca48394c9f249e37868b46a101d12b8 | |
parent | d620d1749d93d60a52a3c52115bfe4f1abdfa791 (diff) |
unbreak logic
-rw-r--r-- | app/lib/sanitize_config.rb | 2 |
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'] |