Fix bad condition on hiding email addresses and update user etag to include privacy settings (#3327)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a0cc913b85
Коммит
8f87e60231
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user