Browse Source

Fix build

rafalp 6 years ago
parent
commit
159b96812c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/threads/utils.py

+ 1 - 1
misago/threads/utils.py

@@ -51,7 +51,7 @@ def get_thread_id_from_url(request, url):  # pylint: disable=too-many-return-sta
         clean_path = url_bits.path
 
     wsgi_alias = request.path[: len(request.path_info) * -1]
-    if not wsgi_alias or not clean_path.startswith(wsgi_alias):
+    if wsgi_alias and not clean_path.startswith(wsgi_alias):
         return None
 
     try: