diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-15 18:55:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 18:55:47 -0500 |
commit | 727d067fcee4e97497152ebf8ca46a5ad254422e (patch) | |
tree | cbf64decb18d5e0d827a9963c540a25550e094ba | |
parent | 1d6ea40022b3806d405ae29c77096300f0c94932 (diff) | |
download | chat-727d067fcee4e97497152ebf8ca46a5ad254422e.tar.gz chat-727d067fcee4e97497152ebf8ca46a5ad254422e.tar.bz2 chat-727d067fcee4e97497152ebf8ca46a5ad254422e.zip |
Handle matching updateats for post list etag (#5435)
-rw-r--r-- | model/post_list.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/model/post_list.go b/model/post_list.go index 5a479ca35..2de4df7d8 100644 --- a/model/post_list.go +++ b/model/post_list.go @@ -72,6 +72,9 @@ func (o *PostList) Etag() string { if v.UpdateAt > t { t = v.UpdateAt id = v.Id + } else if v.UpdateAt == t && v.Id > id { + t = v.UpdateAt + id = v.Id } } |