remotes/1693045480750635534/spooky-22
Aevann1 2022-03-22 15:50:41 +02:00
parent 04b5749aad
commit e1c4ea74cc
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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)