summaryrefslogtreecommitdiffstats
path: root/model/user.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-06-14 12:12:46 -0400
committerGitHub <noreply@github.com>2016-06-14 12:12:46 -0400
commit8f87e60231c406d9f26c1b3a84abd725e544a187 (patch)
tree14349a4b0492f6be37945ea0d437a5f7eb5a7340 /model/user.go
parenta0cc913b85dea5023b705697afa5cd8749a6e5de (diff)
downloadchat-8f87e60231c406d9f26c1b3a84abd725e544a187.tar.gz
chat-8f87e60231c406d9f26c1b3a84abd725e544a187.tar.bz2
chat-8f87e60231c406d9f26c1b3a84abd725e544a187.zip
Fix bad condition on hiding email addresses and update user etag to include privacy settings (#3327)
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/user.go b/model/user.go
index ab076894a..77d04a9bc 100644
--- a/model/user.go
+++ b/model/user.go
@@ -244,8 +244,8 @@ func (u *User) ToJson() string {
}
// Generate a valid strong etag so the browser can cache the results
-func (u *User) Etag() string {
- return Etag(u.Id, u.UpdateAt)
+func (u *User) Etag(showFullName, showEmail bool) string {
+ return Etag(u.Id, u.UpdateAt, showFullName, showEmail)
}
func (u *User) IsOffline() bool {