summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}
}