fd
This commit is contained in:
parent
64d74c251a
commit
e97577c7e7
9 changed files with 12 additions and 12 deletions
|
@ -31,7 +31,7 @@ class User(Base, Stndrd, Age_times):
|
|||
customtitle = Column(String)
|
||||
customtitleplain = Column(String)
|
||||
|
||||
if "pcm" in site:
|
||||
if "pcmemes.net" in site:
|
||||
quadrant = Column(String)
|
||||
basedcount = Column(Integer, default=0)
|
||||
pills = Column(String, default="")
|
||||
|
|
|
@ -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 "pcm" in request.host: pid = 382
|
||||
elif "pcmemes.net" 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 "pcm" in request.host and c_aux.body.lower().startswith("based"):
|
||||
if "pcmemes.net" 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,
|
||||
|
|
|
@ -204,7 +204,7 @@ def settings_profile_post(v):
|
|||
return "", 204
|
||||
|
||||
quadrant = request.values.get("quadrant")
|
||||
if quadrant and "pcm" in request.host.lower():
|
||||
if quadrant and "pcmemes.net" in request.host.lower():
|
||||
v.quadrant = quadrant
|
||||
v.customtitle = quadrant
|
||||
if quadrant=="Centrist":
|
||||
|
|
|
@ -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 "pcm" in request.host:
|
||||
if "pcmemes.net" 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)
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
{% if "rdrama" in request.host %}
|
||||
<a class="dropdown-item" href="/post/2510/posting-guidelines-policies-legal-shit"><i class="fas fa-balance-scale fa-fw text-left mr-3"></i>Rules</a>
|
||||
{% elif "pcm" in request.host %}
|
||||
{% elif "pcmemes.net" in request.host %}
|
||||
<a class="dropdown-item" href="/post/94/hi-welcome-to-pcmemesnet-im-your"><i class="fas fa-balance-scale fa-fw text-left mr-3"></i>Rules</a>
|
||||
{% endif %}
|
||||
|
||||
|
@ -179,7 +179,7 @@
|
|||
|
||||
{% if "rdrama" in request.host %}
|
||||
<li class="nav-item"><a class="nav-link" href="/post/2510/posting-guidelines-policies-legal-shit"><i class="fas fa-balance-scale fa-fw mr-3"></i>Rules</a></li>
|
||||
{% elif "pcm" in request.host %}
|
||||
{% elif "pcmemes.net" in request.host %}
|
||||
<li class="nav-item"><a class="nav-link" href="/post/94/hi-welcome-to-pcmemesnet-im-your"><i class="fas fa-balance-scale fa-fw mr-3"></i>Rules</a></li>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% if "pcm" in request.host %}
|
||||
{% if "pcmemes.net" in request.host %}
|
||||
<pre>
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<div class="settings">
|
||||
|
||||
{% if "pcm" in request.host.lower() %}
|
||||
{% if "pcmemes.net" in request.host.lower() %}
|
||||
|
||||
<h2 class="h5" name="referral">Quadrant</h2>
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
<label class="custom-control-label terms" for="termsCheck">I accept the <a
|
||||
href="/post/2510/posting-guidelines-policies-legal-shit" target="_blank">terms and conditions</a></label>
|
||||
</div>
|
||||
{% elif "pcm" in request.host %}
|
||||
{% elif "pcmemes.net" in request.host %}
|
||||
<div class="custom-control custom-checkbox mt-4">
|
||||
<input type="checkbox" class="custom-control-input" id="termsCheck" required>
|
||||
<label class="custom-control-label terms" for="termsCheck">I accept the <a
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
<div class="font-weight-bolder">
|
||||
<span id="profile-coins-amount">{{u.coins}}</span> {{"COINS_NAME" | app_config}} {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}<a href="/@{{u.username}}/followers">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a> {% endif %}joined <span data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{u.created_datetime}}">{{u.created_date}}</span>
|
||||
</div>
|
||||
{% if "pcm" in request.host %}<p class="text-muted">Based Count: {{u.basedcount}}</p>{% endif %}
|
||||
{% if "pcmemes.net" in request.host %}<p class="text-muted">Based Count: {{u.basedcount}}</p>{% endif %}
|
||||
{% if u.bio_html %}
|
||||
<pre></pre>
|
||||
<div class="text-muted font-weight-bolder">{{u.bio_html | safe}}</div>
|
||||
|
@ -410,7 +410,7 @@
|
|||
<div class="font-weight-normal">
|
||||
<span id="profile-coins-amount-mobile" class="font-weight-bold">{{u.coins}}</span> {{"COINS_NAME" | app_config}} {% if u.stored_subscriber_count >=1 and not u.is_nofollow %}<a href="/@{{u.username}}/followers" class="font-weight-bold">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a> {% endif %}
|
||||
|
||||
{% if "pcm" in request.host %}
|
||||
{% if "pcmemes.net" in request.host %}
|
||||
<br>Based count: {{u.basedcount}}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue