diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-07-09 13:59:19 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-07-17 15:13:24 -0400 |
commit | c09f1b9e4e5638080622ff9aa70735db382a16df (patch) | |
tree | a05d7d71d87cf436c30424a2f34e0cb0db9aaff1 /api/post.go | |
parent | 1d7509493e65324d1e81bf39c51a9d7c07335c56 (diff) | |
download | chat-c09f1b9e4e5638080622ff9aa70735db382a16df.tar.gz chat-c09f1b9e4e5638080622ff9aa70735db382a16df.tar.bz2 chat-c09f1b9e4e5638080622ff9aa70735db382a16df.zip |
Renamed FullName column in database to Nickname. Renamed all serverside references from FullName to Nickname.
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/post.go b/api/post.go index efca2f570..ab89133d5 100644 --- a/api/post.go +++ b/api/post.go @@ -301,7 +301,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) { // If turned on, add the user's case sensitive first name if profile.NotifyProps["first_name"] == "true" { - splitName := strings.Split(profile.FullName, " ") + splitName := strings.Split(profile.Nickname, " ") if len(splitName) > 0 && splitName[0] != "" { keywordMap[splitName[0]] = append(keywordMap[splitName[0]], profile.Id) } @@ -395,10 +395,10 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) { continue } - firstName := strings.Split(profileMap[id].FullName, " ")[0] + firstName := strings.Split(profileMap[id].Nickname, " ")[0] bodyPage := NewServerTemplatePage("post_body", teamUrl) - bodyPage.Props["FullName"] = firstName + bodyPage.Props["Nickname"] = firstName bodyPage.Props["TeamName"] = teamName bodyPage.Props["ChannelName"] = channelName bodyPage.Props["BodyText"] = bodyText |