|
@@ -157,10 +157,16 @@ def forum_is_unread(forum, forumsread, user):
|
|
|
return forum.last_post.date_created > read_cutoff
|
|
|
|
|
|
try:
|
|
|
-
|
|
|
- return forumsread.cleared < forum.last_post.date_created
|
|
|
+
|
|
|
+
|
|
|
+ if forum.last_post.date_created > forumsread.cleared:
|
|
|
+ if forum.last_post.date_created < forumsread.last_read:
|
|
|
+ return False
|
|
|
except TypeError:
|
|
|
- return forumsread.last_read < forum.last_post.date_created
|
|
|
+ pass
|
|
|
+
|
|
|
+
|
|
|
+ return forum.last_post.date_created > forumsread.last_read
|
|
|
|
|
|
|
|
|
def topic_is_unread(topic, topicsread, user, forumsread=None):
|