Skip to content

Commit

Permalink
Fix categories list checking read state
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jun 22, 2024
1 parent 75b5736 commit 89dcef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misago/categories/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def get_categories_list(request: HttpRequest):
)

# Set read state
if request.user.is_authenticated and new_posts[category.id]:
category_data["new_posts"] = True
category_data["children_new_posts"] = True
# if request.user.is_authenticated and new_posts[category.id]:
# category_data["new_posts"] = True
# category_data["children_new_posts"] = True

# Aggregate data from category to its parent
if category.level > 1:
Expand Down

0 comments on commit 89dcef4

Please sign in to comment.