summaryrefslogtreecommitdiffstats
path: root/model/post_list.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-02-15 18:55:47 -0500
committerGitHub <noreply@github.com>2017-02-15 18:55:47 -0500
commit727d067fcee4e97497152ebf8ca46a5ad254422e (patch)
treecbf64decb18d5e0d827a9963c540a25550e094ba /model/post_list.go
parent1d6ea40022b3806d405ae29c77096300f0c94932 (diff)
downloadchat-727d067fcee4e97497152ebf8ca46a5ad254422e.tar.gz
chat-727d067fcee4e97497152ebf8ca46a5ad254422e.tar.bz2
chat-727d067fcee4e97497152ebf8ca46a5ad254422e.zip
Handle matching updateats for post list etag (#5435)
Diffstat (limited to 'model/post_list.go')
-rw-r--r--model/post_list.go3
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
}
}