mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fix permalink in email for DMs/GMs (#5751)
This commit is contained in:
committed by
George Goldberg
parent
a8524b648e
commit
ca90fe5cbe
+1
-2
@@ -318,8 +318,7 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
|
||||
}
|
||||
|
||||
func sendNotificationEmail(post *model.Post, user *model.User, channel *model.Channel, team *model.Team, senderName string, sender *model.User, siteURL string) *model.AppError {
|
||||
if channel.IsGroupOrDirect() && channel.TeamId != team.Id {
|
||||
// this message is a cross-team DM/GM so we need to find a team that the recipient is on to use in the link
|
||||
if channel.IsGroupOrDirect() {
|
||||
if result := <-Srv.Store.Team().GetTeamsByUserId(user.Id); result.Err != nil {
|
||||
return result.Err
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user