From 727d067fcee4e97497152ebf8ca46a5ad254422e Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 15 Feb 2017 18:55:47 -0500 Subject: Handle matching updateats for post list etag (#5435) --- model/post_list.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'model') 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 } } -- cgit v1.2.3-1-g7c22