Fixed "mark all as read"
This commit is contained in:
parent
c8f401f738
commit
50332c6800
|
@ -155,7 +155,9 @@ func FetchThreads(
|
||||||
row := *iresult.(*resultRow)
|
row := *iresult.(*resultRow)
|
||||||
|
|
||||||
hasRead := false
|
hasRead := false
|
||||||
if row.ThreadLastReadTime != nil && row.ThreadLastReadTime.After(row.LastPost.PostDate) {
|
if currentUser != nil && currentUser.MarkedAllReadAt.After(row.LastPost.PostDate) {
|
||||||
|
hasRead = true
|
||||||
|
} else if row.ThreadLastReadTime != nil && row.ThreadLastReadTime.After(row.LastPost.PostDate) {
|
||||||
hasRead = true
|
hasRead = true
|
||||||
} else if row.ForumLastReadTime != nil && row.ForumLastReadTime.After(row.LastPost.PostDate) {
|
} else if row.ForumLastReadTime != nil && row.ForumLastReadTime.After(row.LastPost.PostDate) {
|
||||||
hasRead = true
|
hasRead = true
|
||||||
|
@ -413,7 +415,9 @@ func FetchPosts(
|
||||||
row := *iresult.(*resultRow)
|
row := *iresult.(*resultRow)
|
||||||
|
|
||||||
hasRead := false
|
hasRead := false
|
||||||
if row.ThreadLastReadTime != nil && row.ThreadLastReadTime.After(row.Post.PostDate) {
|
if currentUser != nil && currentUser.MarkedAllReadAt.After(row.Post.PostDate) {
|
||||||
|
hasRead = true
|
||||||
|
} else if row.ThreadLastReadTime != nil && row.ThreadLastReadTime.After(row.Post.PostDate) {
|
||||||
hasRead = true
|
hasRead = true
|
||||||
} else if row.ForumLastReadTime != nil && row.ForumLastReadTime.After(row.Post.PostDate) {
|
} else if row.ForumLastReadTime != nil && row.ForumLastReadTime.After(row.Post.PostDate) {
|
||||||
hasRead = true
|
hasRead = true
|
||||||
|
|
Loading…
Reference in New Issue