master
Aevann1 2022-01-03 06:08:46 +02:00
parent 0809c62a06
commit 17c71a2b54
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
if not pid:
if comment.parent_submission: pid = comment.parent_submission
elif request.host == "rdrama.net": pid = 6489
elif 'pcmemes.net' == request.host: pid = 2487
elif request.host == 'pcmemes.net': pid = 2487
else: pid = 1
try: pid = int(pid)
@ -305,7 +305,7 @@ def api_comment(v):
g.db.add(c_option)
if 'pcmemes.net' == request.host and c.body.lower().startswith("based"):
if request.host == 'pcmemes.net' and c.body.lower().startswith("based"):
pill = re.match("based and (.{1,20}?)(-| )pilled", body, re.IGNORECASE)
if level == 1: basedguy = get_account(c.post.author_id)

View File

@ -384,7 +384,7 @@ def settings_profile_post(v):
updated = True
quadrant = request.values.get("quadrant")
if quadrant and 'pcmemes.net' == request.host.lower():
if quadrant and request.host == 'pcmemes.net'.lower():
v.quadrant = quadrant
v.customtitle = quadrant
if quadrant=="Centrist":

View File

@ -281,7 +281,7 @@ def leaderboard(v):
users4 = users.order_by(User.comment_count.desc()).limit(25).all()
users5 = users.order_by(User.received_award_count.desc()).limit(25).all()
if 'pcmemes.net' == request.host: users6 = users.order_by(User.basedcount.desc()).limit(10).all()
if request.host == 'pcmemes.net': users6 = users.order_by(User.basedcount.desc()).limit(10).all()
else: users6 = None
users7 = users.order_by(User.coins_spent.desc()).limit(25).all()