mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
17 lines
384 B
Ruby
17 lines
384 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Recipients
|
|
class DesignateToMyModuleRecipients < MyModuleDesignatedRecipients
|
|
private
|
|
|
|
def activity_recipients
|
|
activity = Activity.find(@params[:activity_id])
|
|
user = User.find_by(id: activity.values.dig('message_items', 'user_target', 'id'))
|
|
|
|
return [] if user.id == activity.owner_id
|
|
|
|
[user]
|
|
end
|
|
end
|
|
end
|
|
|