From 1c7c40b5caec807a0104aa3b037bfa1f9435aa1d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 7 Apr 2022 01:03:18 +0200 Subject: [PATCH] fsd --- files/__main__.py | 6 ++++-- files/templates/comments.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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" %} - +