master
Aevann1 2021-12-06 20:40:10 +02:00
parent b30e181859
commit d1ff5ed69a
2 changed files with 5 additions and 1 deletions

View File

@ -148,6 +148,7 @@ if SITE == 'rdrama.net':
DAD_ID = 2513
MOM_ID = 4588
BUG_THREAD = 18459
EMOJI_THREAD = 22479
elif SITE == "pcmemes.net":
BASEDBOT_ID = 800
KIPPY_ID = 1592
@ -169,6 +170,7 @@ elif SITE == "pcmemes.net":
DAD_ID = 0
MOM_ID = 0
BUG_THREAD = 4103
EMOJI_THREAD = 0
else:
BASEDBOT_ID = 0
KIPPY_ID = 0
@ -190,6 +192,7 @@ else:
DAD_ID = 0
MOM_ID = 0
BUG_THREAD = 0
EMOJI_THREAD = 0
PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6'
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()

View File

@ -101,7 +101,8 @@ def post_id(pid, anything=None, v=None):
try: pid = int(pid)
except Exception as e: pass
if v: defaultsortingcomments = v.defaultsortingcomments
if request.host == 'rdrama.net' and pid in [BUG_THREAD, EMOJI_THREAD]: defaultsortingcomments = 'new'
elif v: defaultsortingcomments = v.defaultsortingcomments
else: defaultsortingcomments = "top"
sort = request.values.get("sort", defaultsortingcomments)