2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

UX: Include group name in email when group is invited to a PM.

https://meta.discourse.org/t/xyz-invited-you-to-a-message-but-really-invited-a-group-im-in/65996
This commit is contained in:
Guo Xiang Tan 2017-07-26 15:51:44 +09:00
parent d3a975e99a
commit b59dfb86f4
5 changed files with 99 additions and 13 deletions

View file

@ -723,6 +723,8 @@ SQL
PostAlerter.new.after_save_post(last_post)
add_small_action(user, "invited_group", group.name)
group_id = group.id
group.users.where(
"group_users.notification_level > ?", NotificationLevels.all[:muted]
).find_each do |u|
@ -733,7 +735,8 @@ SQL
post_number: 1,
data: {
topic_title: self.title,
display_username: user.username
display_username: user.username,
group_id: group_id
}.to_json
)
end