Skip to content

Commit

Permalink
AO3-6836 Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
indesotw committed Jan 12, 2025
1 parent 51092cd commit d7de6d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ def send_deleted_work_notification
return unless self.posted?

users = self.pseuds.collect(&:user).uniq
orphan_account = User.orphan_account

return if users.blank?

orphan_account = User.orphan_account

users.each do |user|
next if user == orphan_account

Expand Down

0 comments on commit d7de6d5

Please sign in to comment.