From 5d4b18605a3fc7493e7ad5aecfe5f83d1d32b8e0 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Fri, 19 Feb 2016 13:17:49 -0800 Subject: Fixed issue with corrupted custom mentions on username change --- store/sql_user_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store') diff --git a/store/sql_user_store.go b/store/sql_user_store.go index b1544289d..d866f949a 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -159,7 +159,7 @@ func (us SqlUserStore) Update(user *model.User, allowActiveUpdate bool) StoreCha nonUsernameKeys = append(nonUsernameKeys, key) } } - user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + user.Username + ",@" + user.Username + user.NotifyProps["mention_keys"] = strings.Join(nonUsernameKeys, ",") + "," + user.Username + ",@" + user.Username } if count, err := us.GetMaster().Update(user); err != nil { -- cgit v1.2.3-1-g7c22