Alec Nikolas Reiter 7 years ago
parent
commit
c79da9f2d7
2 changed files with 3 additions and 3 deletions
  1. 1 1
      flaskbb/utils/helpers.py
  2. 2 2
      migrations/d0ffadc3ea48_add_hidden_columns.py

+ 1 - 1
flaskbb/utils/helpers.py

@@ -241,7 +241,7 @@ def forum_is_unread(forum, forumsread, user):
         return False
 
     # check if the last post is newer than the tracker length
-    if not forum.last_post or forum.last_post_created < read_cutoff:
+    if forum.last_post_id is None or forum.last_post_created < read_cutoff:
         return False
 
     # If the user hasn't visited a topic in the forum - therefore,

+ 2 - 2
migrations/d0ffadc3ea48_add_hidden_columns.py

@@ -12,8 +12,8 @@ import flaskbb
 
 # revision identifiers, used by Alembic.
 revision = 'd0ffadc3ea48'
-down_revision = None
-branch_labels = ('default',)
+down_revision = '881dd22cab94'
+branch_labels = ()
 depends_on = None