diff --git a/files/classes/user.py b/files/classes/user.py index 626d7845b4..e35389fc44 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -31,7 +31,7 @@ class User(Base, Stndrd, Age_times): customtitle = Column(String) customtitleplain = Column(String) - if "pcmemes.net" in site: + if "pcm" in site: quadrant = Column(String) basedcount = Column(Integer, default=0) pills = Column(String, default="") diff --git a/files/routes/comments.py b/files/routes/comments.py index eb2bb6025d..bf5a257849 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -46,7 +46,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 "rdrama" in request.host: pid = 6489 - elif "pcmemes.net" in request.host: pid = 382 + elif "pcm" in request.host: pid = 382 else: pid = 1 try: pid = int(pid) @@ -297,7 +297,7 @@ def api_comment(v): g.db.add(c_aux) g.db.flush() - if "pcmemes.net" in request.host and c_aux.body.lower().startswith("based"): + if "pcm" in request.host and c_aux.body.lower().startswith("based"): pill = re.match("based and (.{1,20}?)(-| )pilled", body, re.IGNORECASE) c_based = Comment(author_id=BASEDBOT_ACCOUNT, diff --git a/files/routes/settings.py b/files/routes/settings.py index d1e872cde3..c579774cca 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -204,7 +204,7 @@ def settings_profile_post(v): return "", 204 quadrant = request.values.get("quadrant") - if quadrant and "pcmemes.net" in request.host.lower(): + if quadrant and "pcm" in request.host.lower(): v.quadrant = quadrant v.customtitle = quadrant if quadrant=="Centrist": diff --git a/files/routes/users.py b/files/routes/users.py index 91587d519b..c38b3d8574 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -141,7 +141,7 @@ def leaderboard(v): users3 = users.order_by(User.post_count.desc()).limit(10).all() users4 = users.order_by(User.comment_count.desc()).limit(10).all() users5 = users.order_by(User.received_award_count.desc()).limit(10).all() - if "pcmemes.net" in request.host: + if "pcm" in request.host: users6 = users.order_by(User.basedcount.desc()).limit(10).all() return render_template("leaderboard.html", v=v, users1=users1, users2=users2, users3=users3, users4=users4, users5=users5, users6=users6) return render_template("leaderboard.html", v=v, users1=users1, users2=users2, users3=users3, users4=users4, users5=users5) diff --git a/files/templates/header.html b/files/templates/header.html index b03ab99759..7bf8e966b2 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -117,7 +117,7 @@ {% if "rdrama" in request.host %} Rules - {% elif "pcmemes.net" in request.host %} + {% elif "pcm" in request.host %} Rules {% endif %} @@ -179,7 +179,7 @@ {% if "rdrama" in request.host %} - {% elif "pcmemes.net" in request.host %} + {% elif "pcm" in request.host %} {% endif %} diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index 63eb796a9e..7291b86bc6 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -124,7 +124,7 @@ {% endfor %} -{% if "pcmemes.net" in request.host %} +{% if "pcm" in request.host %}
 
 
diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html
index f4e4e06515..77fe31c86a 100644
--- a/files/templates/settings_profile.html
+++ b/files/templates/settings_profile.html
@@ -12,7 +12,7 @@
 
 		
- {% if "pcmemes.net" in request.host.lower() %} + {% if "pcm" in request.host.lower() %}

Quadrant

diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 6e9ac63947..a60b01f585 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -188,7 +188,7 @@
- {% elif "pcmemes.net" in request.host %} + {% elif "pcm" in request.host %}
- {% if "pcmemes.net" in request.host %}

Based Count: {{u.basedcount}}

{% endif %} + {% if "pcm" in request.host %}

Based Count: {{u.basedcount}}

{% endif %} {% if u.bio_html %}

 				
{{u.bio_html | safe}}
@@ -410,7 +410,7 @@
{{u.coins}} {{"COINS_NAME" | app_config}}  {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}   {% endif %} - {% if "pcmemes.net" in request.host %} + {% if "pcm" in request.host %}
Based count: {{u.basedcount}} {% endif %}