mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: new 'should_add_email_attachments' plugin modifier
That can be used by plugins to control whether email attachments should be sent. Internal ref - t/132149
This commit is contained in:
@@ -360,6 +360,8 @@ module Email
|
||||
|
||||
email_size = 0
|
||||
posts.each do |post|
|
||||
next unless DiscoursePluginRegistry.apply_modifier(:should_add_email_attachments, post)
|
||||
|
||||
post.uploads.each do |original_upload|
|
||||
optimized_1X = original_upload.optimized_images.first
|
||||
|
||||
|
||||
Reference in New Issue
Block a user