Skip to content

Commit

Permalink
skip signature images for image URLs...so silly.
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Jan 16, 2024
1 parent 133a4f6 commit 78a2e7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/lib/email_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78a2e7c

Please sign in to comment.