mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Fix compile error on master (#5813)
This commit is contained in:
+1
-1
@@ -535,7 +535,7 @@ func addChannelMember(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if cm, err := app.AddChannelMember(member.UserId, channel, c.Session.UserId); err != nil {
|
||||
if cm, err := app.AddChannelMember(member.UserId, channel, c.Session.UserId, c.GetSiteURL()); err != nil {
|
||||
c.Err = err
|
||||
return
|
||||
} else {
|
||||
|
||||
+2
-2
@@ -446,7 +446,7 @@ func AddUserToChannel(user *model.User, channel *model.Channel) (*model.ChannelM
|
||||
return newMember, nil
|
||||
}
|
||||
|
||||
func AddChannelMember(userId string, channel *model.Channel, userRequestorId string) (*model.ChannelMember, *model.AppError) {
|
||||
func AddChannelMember(userId string, channel *model.Channel, userRequestorId, siteURL string) (*model.ChannelMember, *model.AppError) {
|
||||
var user *model.User
|
||||
var err *model.AppError
|
||||
|
||||
@@ -464,7 +464,7 @@ func AddChannelMember(userId string, channel *model.Channel, userRequestorId str
|
||||
return nil, err
|
||||
}
|
||||
|
||||
go PostAddToChannelMessage(userRequestor, user, channel)
|
||||
go PostAddToChannelMessage(userRequestor, user, channel, siteURL)
|
||||
|
||||
UpdateChannelLastViewedAt([]string{channel.Id}, userRequestor.Id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user