Skip to content

Commit 9ad00ae

Browse files
committed
AO3-6775 It was too obvious
1 parent 1f48b08 commit 9ad00ae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/models/work.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,7 @@ def new_recipients_have_not_blocked_gift_giver
250250

251251
before_destroy :send_deleted_work_notification, prepend: true
252252
def send_deleted_work_notification
253-
return unless self.posted?
254-
255-
users = self.pseuds.includes(:user).collect(&:user).uniq
256-
return if users.blank?
253+
return unless self.posted? && users.present?
257254

258255
orphan_account = User.orphan_account
259256
users.each do |user|

0 commit comments

Comments
 (0)