diff --git a/files/__main__.py b/files/__main__.py index 734912737f..9f4231d300 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -119,5 +119,7 @@ def after_request(response): response.headers.add("X-Frame-Options", "deny") return response -from files.routes.chat import * -from files.routes import * \ No newline at end of file +if "load_chat" in argv: + from files.routes.chat import * +else: + from files.routes import * \ No newline at end of file diff --git a/files/templates/comments.html b/files/templates/comments.html index 7a15440489..5d0ad3313d 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -856,7 +856,7 @@ {% include "expanded_image_modal.html" %} - +