lib/ahoy_email/processor.rb in ahoy_email-0.5.0 vs lib/ahoy_email/processor.rb in ahoy_email-0.5.1
- old
+ new
@@ -138,10 +138,10 @@
attribute = "data-skip-#{suffix}"
if link[attribute]
# remove it
link.remove_attribute(attribute)
true
- elsif link["href"].to_s =~ /unsubscribe/i
+ elsif link["href"].to_s =~ /unsubscribe/i && !options[:unsubscribe_links]
# try to avoid unsubscribe links
true
else
false
end