From 78a2e7cf1c3481fde3677f6361bf842a63fd8673 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Tue, 16 Jan 2024 15:22:49 -0100 Subject: [PATCH] skip signature images for image URLs...so silly. --- app/lib/email_processor.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 5c0a6bf9..dde0b74e 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -82,6 +82,12 @@ def process image_width, image_height = FastImage.size(image_url) next if image_height && image_width && image_height < 100 && image_width < 100 + # skip signature images + next if @user.id == 293 && image_url.include?("cropped-img-0719-300x86.jpeg") + next if @user.id == 10836 && image_url.include?("b_logo.png") + next if @user.id == 2541 && image_url.include?("image001.jpg") + next if image_url.include?("linkedin_icon_circle.svg.png") + valid_attachment_urls << image_url end end