Skip to content

Commit

Permalink
don't store social sig
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Jan 15, 2024
1 parent 2bd7a6f commit e07a078
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/email_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e07a078

Please sign in to comment.