Skip to content

Commit

Permalink
Tweak code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jul 11, 2024
1 parent b0babf4 commit dac657b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misago/threads/views/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ def get_threads_latest_post_id(self, threads: list[Thread]) -> int:
return 0

def is_threads_polling_enabled(self, request: HttpRequest) -> bool:
if request.settings.threads_lists_polling == ThreadsListsPolling.DISABLED:
polling = request.settings.threads_lists_polling
if polling == ThreadsListsPolling.DISABLED:
return False

if (
request.settings.threads_lists_polling
== ThreadsListsPolling.ENABLED_FOR_USERS
polling == ThreadsListsPolling.ENABLED_FOR_USERS
and request.user.is_anonymous
):
return False
Expand Down

0 comments on commit dac657b

Please sign in to comment.