diff options
Diffstat (limited to 'lib/banzai/filter/external_link_filter.rb')
-rw-r--r-- | lib/banzai/filter/external_link_filter.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/banzai/filter/external_link_filter.rb b/lib/banzai/filter/external_link_filter.rb index d1a0f8e5859..0a76c84efe5 100644 --- a/lib/banzai/filter/external_link_filter.rb +++ b/lib/banzai/filter/external_link_filter.rb @@ -22,12 +22,12 @@ module Banzai addressable_uri = nil end - unless internal_url?(addressable_uri) - punycode_autolink_node!(addressable_uri, node) - sanitize_link_text!(node) - add_malicious_tooltip!(addressable_uri, node) - add_nofollow!(addressable_uri, node) - end + next if internal_url?(addressable_uri) + + punycode_autolink_node!(addressable_uri, node) + sanitize_link_text!(node) + add_malicious_tooltip!(addressable_uri, node) + add_nofollow!(addressable_uri, node) end doc |