diff --git a/files/routes/chat.py b/files/routes/chat.py index bf916f323..516066aca 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -1,7 +1,6 @@ from files.helpers.const import SITE if SITE in ('pcmemes.net', 'localhost'): - import time from files.helpers.wrappers import auth_required from files.helpers.sanitize import sanitize from datetime import datetime @@ -15,6 +14,9 @@ if SITE in ('pcmemes.net', 'localhost'): online = [] messages = [] + if __name__ == '__main__': + socketio.run(app) + @app.get("/chat") @auth_required def chat( v): @@ -33,7 +35,6 @@ if SITE in ('pcmemes.net', 'localhost'): "username":v.username, "namecolor":v.namecolor, "text":sanitize(data), - "time": time.strftime("%d %b %Y at %H:%M:%S", time.gmtime(int(time.time()))) } messages.append(data) diff --git a/files/routes/posts.py b/files/routes/posts.py index b66afcdc4..13adc327a 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -718,7 +718,7 @@ def thumbnail_thread(pid): for i in data: - if i["author"] == 'GoMarsey': continue + if i["subreddit"] == 'PokemonGoRaids': continue body_html = sanitize(f'New {word} mention: https://old.reddit.com{i["permalink"]}?context=89', noimages=True)