summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/user.go4
-rw-r--r--model/user_test.go2
2 files changed, 3 insertions, 3 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 {
diff --git a/model/user_test.go b/model/user_test.go
index d8ef77d6a..899542a05 100644
--- a/model/user_test.go
+++ b/model/user_test.go
@@ -33,7 +33,7 @@ func TestUserJson(t *testing.T) {
func TestUserPreSave(t *testing.T) {
user := User{Password: "test"}
user.PreSave()
- user.Etag()
+ user.Etag(true, true)
}
func TestUserPreUpdate(t *testing.T) {