Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

FIX: add_attachments signature #322

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/email_sender_extensions.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

module DiscourseEncrypt::EmailSenderExtensions
def add_attachments(post)
return if post.is_encrypted?
def add_attachments(*posts)
return if posts.any?(&:is_encrypted?)
super
end
end