Skip to content

Commit

Permalink
Applying PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Sep 24, 2024
1 parent 73bb7af commit c5c1d2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/concerns/tipline_content_video.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ module TiplineContentVideo

# Max size that WhatsApp supports
def header_file_video_max_size_whatsapp
16
CheckConfig.get(:header_file_video_max_size_whatsapp, 16, :integer)
end

# Max size for Check (we need to convert it to H.264, so let's be safe)
# Max size for Check (we need to convert it to H.264, so let's be safe and use a value less than what WhatsApp supports)
def header_file_video_max_size_check
10
CheckConfig.get(:header_file_video_max_size_check, 10, :integer)
end

def validate_header_file_video
Expand Down
2 changes: 2 additions & 0 deletions config/config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ development: &default
api_rate_limit: 100
export_csv_maximum_number_of_results: 10000
export_csv_expire: 604800 # Seconds: Default is 7 days
header_file_video_max_size_whatsapp: 16 # Megabytes
header_file_video_max_size_check: 10 # Megabytes, should be less than WhatsApp limit

# Session
#
Expand Down

0 comments on commit c5c1d2b

Please sign in to comment.