Method: Thredded::NotifyPrivateTopicUsers#targeted_users

Defined in:
app/commands/thredded/notify_private_topic_users.rb

#targeted_users(notifier) ⇒ Object



17
18
19
20
21
# File 'app/commands/thredded/notify_private_topic_users.rb', line 17

def targeted_users(notifier)
  users = private_topic.users.includes(:thredded_notifications_for_private_topics) - [post.user]
  users = only_those_with_this_notifier_enabled(users, notifier)
  users
end