From e07a0781773e25ed5aa9eb5f27e1cbece1c0a25c Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Mon, 15 Jan 2024 10:03:08 -0100 Subject: [PATCH] don't store social sig --- app/lib/email_processor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 3b97a266..5c0a6bf9 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -54,6 +54,7 @@ def process next if @user.id == 293 && attachment&.original_filename.to_s.downcase.include?("cropped-img-0719-300x86.jpeg") next if @user.id == 10836 && attachment&.original_filename.to_s.downcase.include?("b_logo.png") next if @user.id == 2541 && attachment&.original_filename.to_s.downcase.include?("image001.jpg") + next if attachment&.original_filename.to_s.downcase.include?("linkedin_icon_circle.svg.png") if (attachment.content_type == "application/octet-stream" || attachment.content_type =~ /^image\/(png|jpe?g|webp|gif|heic|heif)$/i || attachment&.original_filename.to_s =~ /^(.+\.(heic|heif))$/i) && file_size > 20000 valid_attachments << attachment