forked from MarseyWorld/MarseyWorld
fsd
parent
56f5d44c90
commit
ae82ada424
2
env
2
env
|
@ -1,6 +1,6 @@
|
|||
export MASTER_KEY="blahblahblah"
|
||||
export DOMAIN="localhost"
|
||||
export SITE_NAME="Drama"
|
||||
export SITE_NAME="rDrama"
|
||||
export GIPHY_KEY="blahblahblah"
|
||||
export DISCORD_SERVER_ID="blahblahblah"
|
||||
export DISCORD_CLIENT_ID="blahblahblah"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ from .const import *
|
|||
|
||||
command_word = "!slots"
|
||||
casino_word = "!slotsmb"
|
||||
if SITE_NAME == 'Drama': minimum_bet = 100
|
||||
if SITE_NAME == 'rDrama': minimum_bet = 100
|
||||
else: minimum_bet = 10
|
||||
maximum_bet = INFINITY
|
||||
payout_to_symbols = {
|
||||
|
|
|
@ -402,7 +402,7 @@ def remove_meme_admin(v, username):
|
|||
@limiter.limit("1/day")
|
||||
@admin_level_required(3)
|
||||
def monthly(v):
|
||||
if SITE_NAME == 'Drama' and v.id != AEVANN_ID: abort (403)
|
||||
if SITE_NAME == 'rDrama' and v.id != AEVANN_ID: abort (403)
|
||||
|
||||
data = {'access_token': GUMROAD_TOKEN}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
|
|||
|
||||
if not pid:
|
||||
if comment.parent_submission: pid = comment.parent_submission
|
||||
elif SITE_NAME == 'Drama': pid = 6489
|
||||
elif SITE_NAME == 'rDrama': pid = 6489
|
||||
elif request.host == 'pcmemes.net': pid = 2487
|
||||
else: pid = 1
|
||||
|
||||
|
@ -509,7 +509,7 @@ def api_comment(v):
|
|||
g.db.add(n)
|
||||
|
||||
|
||||
if SITE_NAME == 'Drama' and len(c.body) >= 1000 and "<" not in body and "</blockquote>" not in body_html:
|
||||
if SITE_NAME == 'rDrama' and len(c.body) >= 1000 and "<" not in body and "</blockquote>" not in body_html:
|
||||
|
||||
body = random.choice(LONGPOST_REPLIES)
|
||||
|
||||
|
@ -551,7 +551,7 @@ def api_comment(v):
|
|||
g.db.add(n)
|
||||
|
||||
|
||||
if SITE_NAME == 'Drama' and random.random() < 0.001:
|
||||
if SITE_NAME == 'rDrama' and random.random() < 0.001:
|
||||
|
||||
body = "zoz"
|
||||
body_html2 = sanitize(body)
|
||||
|
|
|
@ -17,7 +17,7 @@ def join_discord(v):
|
|||
|
||||
if v.shadowbanned: return {"error": "Internal server error"}
|
||||
|
||||
if SITE_NAME == 'Drama' and v.admin_level < 2 and v.patron == 0 and v.truecoins < 150:
|
||||
if SITE_NAME == 'rDrama' and v.admin_level < 2 and v.patron == 0 and v.truecoins < 150:
|
||||
return "You must receive 150 upvotes/downvotes from other users before being able to join the Discord server."
|
||||
|
||||
now=int(time.time())
|
||||
|
|
|
@ -158,11 +158,11 @@ def front_all(v, sub=None, subdomain=None):
|
|||
|
||||
if v:
|
||||
defaultsorting = v.defaultsorting
|
||||
if sub or SITE_NAME != 'Drama': defaulttime = 'all'
|
||||
if sub or SITE_NAME != 'rDrama': defaulttime = 'all'
|
||||
else: defaulttime = v.defaulttime
|
||||
else:
|
||||
defaultsorting = "hot"
|
||||
if sub or SITE_NAME != 'Drama': defaulttime = 'all'
|
||||
if sub or SITE_NAME != 'rDrama': defaulttime = 'all'
|
||||
else: defaulttime = defaulttimefilter
|
||||
|
||||
sort=request.values.get("sort", defaultsorting)
|
||||
|
@ -178,7 +178,7 @@ def front_all(v, sub=None, subdomain=None):
|
|||
except: lt=0
|
||||
|
||||
if v: subs = v.subs
|
||||
elif SITE_NAME == 'Drama': subs = 1
|
||||
elif SITE_NAME == 'rDrama': subs = 1
|
||||
else: subs = 2
|
||||
|
||||
ids, next_exists = frontlist(sort=sort,
|
||||
|
|
|
@ -708,7 +708,7 @@ def thumbnail_thread(pid):
|
|||
db.add(post)
|
||||
db.commit()
|
||||
|
||||
if SITE_NAME == 'Drama':
|
||||
if SITE_NAME == 'rDrama':
|
||||
for t in ("submission","comment"):
|
||||
word = random.choice(('rdrama','marsey'))
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ def privacy(v):
|
|||
@app.get("/marseys")
|
||||
@auth_required
|
||||
def marseys(v):
|
||||
if SITE_NAME == 'Drama':
|
||||
if SITE_NAME == 'rDrama':
|
||||
marseys = g.db.query(Marsey, User).join(User, User.id==Marsey.author_id)
|
||||
sort = request.values.get("sort", "usage")
|
||||
if sort == "usage": marseys = marseys.order_by(Marsey.count.desc(), User.username)
|
||||
|
@ -30,7 +30,7 @@ def marseys(v):
|
|||
@app.get("/marsey_list")
|
||||
@cache.memoize(timeout=600)
|
||||
def marsey_list():
|
||||
if SITE_NAME == 'Drama':
|
||||
if SITE_NAME == 'rDrama':
|
||||
marseys = [f"{x.name} : {y} {x.tags}" for x, y in g.db.query(Marsey, User.username).join(User, User.id==Marsey.author_id).order_by(Marsey.count.desc())]
|
||||
else:
|
||||
marseys = [f"{x.name} : {x.tags}" for x in g.db.query(Marsey).order_by(Marsey.count.desc())]
|
||||
|
|
|
@ -271,7 +271,7 @@ def remove_mod(v, sub):
|
|||
@app.get("/create_sub")
|
||||
@is_not_permabanned
|
||||
def create_sub(v):
|
||||
if SITE_NAME == 'Drama' and v.id not in (AEVANN_ID, CARP_ID): abort(403)
|
||||
if SITE_NAME == 'rDrama' and v.id not in (AEVANN_ID, CARP_ID): abort(403)
|
||||
|
||||
if request.host == 'rdrama.net': cost = 0
|
||||
else:
|
||||
|
@ -286,7 +286,7 @@ def create_sub(v):
|
|||
@app.post("/create_sub")
|
||||
@is_not_permabanned
|
||||
def create_sub2(v):
|
||||
if SITE_NAME == 'Drama' and v.id not in (AEVANN_ID, CARP_ID): abort(403)
|
||||
if SITE_NAME == 'rDrama' and v.id not in (AEVANN_ID, CARP_ID): abort(403)
|
||||
|
||||
name = request.values.get('name')
|
||||
if not name: abort(400)
|
||||
|
|
|
@ -509,7 +509,7 @@ def leaderboard(v):
|
|||
if pos11[1] < 25 and v not in (x[0] for x in users11):
|
||||
pos11 = (26, pos11[1])
|
||||
|
||||
if SITE_NAME == 'Drama':
|
||||
if SITE_NAME == 'rDrama':
|
||||
sq = g.db.query(Marsey.author_id, func.count(Marsey.author_id).label("count"), func.rank().over(order_by=func.count(Marsey.author_id).desc()).label("rank")).group_by(Marsey.author_id).subquery()
|
||||
users12 = g.db.query(User, sq.c.count).join(sq, User.id==sq.c.author_id).order_by(sq.c.count.desc())
|
||||
pos12 = g.db.query(User.id, sq.c.rank, sq.c.count).join(sq, User.id==sq.c.author_id).filter(User.id == v.id).one_or_none()
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
</form>
|
||||
|
||||
<pre></pre>
|
||||
{% if SITE_NAME != 'Drama' or v.id == AEVANN_ID %}
|
||||
{% if SITE_NAME != 'rDrama' or v.id == AEVANN_ID %}
|
||||
<div><a class="btn btn-danger" role="button" onclick="post_toast(this,'/admin/monthly')">Grant Monthly Marseybux</a></div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -199,7 +199,7 @@
|
|||
{% if c.ghost %}
|
||||
👻
|
||||
{% else %}
|
||||
{% if SITE_NAME=='Drama' and c.author.house %}
|
||||
{% if SITE_NAME=='rDrama' and c.author.house %}
|
||||
<img src="/assets/images/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{c.author.house}}" alt="House {{c.author.house}}">
|
||||
{% endif %}
|
||||
|
||||
|
@ -208,7 +208,7 @@
|
|||
{% if not c.author %}
|
||||
{{c.print()}}
|
||||
{% endif %}
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;"><img loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level and SITE_NAME == 'Drama' %}class="mod"{% endif %}>{{c.author_name}}</span></a>
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;"><img loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level and SITE_NAME == 'rDrama' %}class="mod"{% endif %}>{{c.author_name}}</span></a>
|
||||
{% if c.author.customtitle %} <bdi style="color: #{{c.author.titlecolor}}"> {{c.author.customtitle | safe}}</bdi>{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
{% if v %}
|
||||
{% if sub %}
|
||||
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
|
||||
{% elif SITE_NAME == 'Drama' %}
|
||||
{% elif SITE_NAME == 'rDrama' %}
|
||||
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
|
||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=23' %}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="text-center px-3 my-8">
|
||||
<img alt=":#marseymerchant:" loading="lazy" class="mb-2" src="/e/marseymerchant.webp">
|
||||
<h1 class="h5">401 Not Authorized</h1>
|
||||
<p class="text-muted">This page is only available to {% if SITE_NAME == 'Drama' %}paypigs{% else %}patrons{% endif %}:</p>
|
||||
<p class="text-muted">This page is only available to {% if SITE_NAME == 'rDrama' %}paypigs{% else %}patrons{% endif %}:</p>
|
||||
<a rel="nofollow noopener noreferrer" href="{{config('GUMROAD_LINK')}}">{{config('GUMROAD_LINK')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
<nav class="shadow shadow-md fixed-top">
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<style>
|
||||
body {padding-top: 85.88px !important}
|
||||
@media (max-width: 767.98px) {
|
||||
|
@ -20,7 +20,7 @@
|
|||
</style>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<div class="srd">
|
||||
<a style="color: white" class="text-small-mobile" href="https://reddit.com/r/SubredditDrama">💖🌈 welcome to {{request.host}}: the official site for r/subredditdrama</a>
|
||||
</div>
|
||||
|
@ -29,8 +29,8 @@
|
|||
|
||||
<div class="navbar navbar-expand-md navbar-light" id="navbar">
|
||||
<div class="container-fluid" style="padding:0;">
|
||||
<a href="/" class="navbar-brand mr-auto {% if SITE_NAME != 'Drama' and not sub %}flex-grow-1{% endif %}">
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
<a href="/" class="navbar-brand mr-auto {% if SITE_NAME != 'rDrama' and not sub %}flex-grow-1{% endif %}">
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<img alt="header icon" height=33 width=43 src="/assets/images/{{SITE_NAME}}/headericon.webp?v=1015">
|
||||
{% else %}
|
||||
<img alt="header icon" height=33 src="/assets/images/{{SITE_NAME}}/headericon.webp?v=1015">
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
{% if sub %}
|
||||
<a href="/h/{{sub.name}}" class="font-weight-bold ml-2 flex-grow-1 mt-1" style="font-size:max(14px,1.2vw)">/h/{{sub.name}}</a>
|
||||
{% elif SITE_NAME == 'Drama' %}
|
||||
{% elif SITE_NAME == 'rDrama' %}
|
||||
<a href="/" class="flex-grow-1">
|
||||
<img alt="logo" src="/assets/images/{{SITE_NAME}}/logo.webp?v=1010" height=20 width=77>
|
||||
</a>
|
||||
|
@ -152,7 +152,7 @@
|
|||
<button class="dropdown-item copy-link" data-clipboard-text="{{SITE_FULL}}/signup?ref={{v.username}}"><i class="fas fa-user-friends fa-fw mr-3"></i>Invite friends</button>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<a class="dropdown-item" href="https://play.google.com/store/apps/details?id=com.rdrama"><i class="fab fa-android fa-fw mr-3"></i>Android app</a>
|
||||
{% else %}
|
||||
<a class="dropdown-item" href="/assets/{{config('SITE_NAME')}}_v1.9.apk?v=3"><i class="fab fa-android fa-fw mr-3"></i>Android app</a>
|
||||
|
@ -162,7 +162,7 @@
|
|||
|
||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="https://github.com/Aevann1/Drama"><i class="fab fa-github fa-fw mr-3"></i>Source code</a>
|
||||
|
||||
{% if SITE_NAME in ['Drama', 'PCM'] %}
|
||||
{% if SITE_NAME in ['rDrama', 'PCM'] %}
|
||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="/report_bugs"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
|
||||
{% endif %}
|
||||
|
||||
|
@ -172,7 +172,7 @@
|
|||
{% if not (g.webview and v.truecoins < 1) %}
|
||||
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="{{config('GUMROAD_LINK')}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||
{% endif %}
|
||||
{% if SITE_NAME == 'Drama' %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||
{% if SITE_NAME == 'rDrama' %}<a class="dropdown-item" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||
<a class="dropdown-item" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
|
@ -218,7 +218,7 @@
|
|||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<a class="nav-item nav-link" href="https://play.google.com/store/apps/details?id=com.rdrama"><i class="fab fa-android fa-fw mr-3"></i>Android app</a>
|
||||
{% else %}
|
||||
<a class="nav-item nav-link" href="/assets/{{config('SITE_NAME')}}_v1.9.apk?v=3"><i class="fab fa-android fa-fw mr-3"></i>Android app</a>
|
||||
|
@ -232,7 +232,7 @@
|
|||
{% if not (g.webview and v.truecoins < 1) %}
|
||||
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="{{config('GUMROAD_LINK')}}"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||
{% endif %}
|
||||
{% if SITE_NAME == 'Drama' %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||
{% if SITE_NAME == 'rDrama' %}<a class="nav-item nav-link" href="/archives"><i class="fas fa-book fa-fw mr-3"></i>Archives</a>{% endif %}
|
||||
<a class="nav-item nav-link" href="/contact"><i class="fas fa-file-signature fa-fw mr-3"></i>Contact us</a>
|
||||
|
||||
<li class="nav-item border-top border-bottom mt-2 pt-2">
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
<th>Name</th>
|
||||
<th>Marsey</th>
|
||||
<th><a href="?sort=usage">Usage</a></th>
|
||||
{% if SITE_NAME == 'Drama' %}<th><a href="?sort=author">Author</a></th>{% endif %}
|
||||
{% if SITE_NAME == 'rDrama' %}<th><a href="?sort=author">Author</a></th>{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="followers-table">
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
{% for marsey, author in marseys %}
|
||||
<tr>
|
||||
<td>{{loop.index}}</td>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<div class="settings">
|
||||
|
||||
|
||||
{% if SITE_NAME == 'Drama' %}
|
||||
{% if SITE_NAME == 'rDrama' %}
|
||||
<h2 class="h5" name="referral">House</h2>
|
||||
|
||||
<div class="settings-section rounded">
|
||||
|
|
|
@ -1,86 +1,86 @@
|
|||
<div class="col sidebar text-left d-none d-lg-block pt-3 pb-5 bg-white" style="max-width:300px">
|
||||
|
||||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% else %}
|
||||
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
|
||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=38' %}
|
||||
{% endif %}
|
||||
|
||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||
|
||||
{% if sub %}
|
||||
{% if sub.sidebar_html %}
|
||||
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
|
||||
{% endif %}
|
||||
{% if v %}
|
||||
<div class="d-lg-block d-none btn-block">
|
||||
{% if v.subs == 1 %}
|
||||
<a class="btn btn-primary btn-block mb-3 {% if v.subscribed_to(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/subscribe','subscribe-sub','unsubscribe-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')">SUBSCRIBE TO HOLE</a>
|
||||
<a class="btn btn-primary btn-block mb-3 {% if not v.subscribed_to(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unsubscribe','subscribe-sub','unsubscribe-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')">UNSUBSCRIBE FROM HOLE</a>
|
||||
{% else %}
|
||||
<a class="btn btn-primary btn-block mb-3 {% if v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/block','block-sub','unblock-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')">BLOCK HOLE</a>
|
||||
<a class="btn btn-primary btn-block mb-3 {% if not v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unblock','block-sub','unblock-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')">UNBLOCK HOLE</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if v.id in (AEVANN_ID,CARP_ID) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/create_sub">CREATE HOLE</a>
|
||||
{% endif %}
|
||||
{% if v.mods(sub.name) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/mods">HOLE MODS</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/subscribers">HOLE SUBSCRIBERS</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/exilees">HOLE EXILEES</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
|
||||
{% else %}
|
||||
{% if v and v.id in (AEVANN_ID,CARP_ID) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/create_sub">CREATE HOLE</a>
|
||||
{% endif %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/16583">EMOJI MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/18459">BUGS/SUGGESTIONS MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/32341">SIDEBAR ARTWORK MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/33652">SNAPPY QUOTES MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/35835">BANNER ARTWORK MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/37677">EMOJI REQUESTS MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/39413">GAMBLING MEGATHREAD</a>
|
||||
|
||||
<div class="rules mt-4">
|
||||
Rulez:<br><br>
|
||||
|
||||
- Don't post anything illegal<br><br>
|
||||
|
||||
- No sexualizing minors even as a “joke”<br><br>
|
||||
|
||||
- No doxing<br><br>
|
||||
|
||||
- Using alts to game dramacoin will get you banned<br><br>
|
||||
|
||||
- Supporting free speech is an immediate ban<br><br>
|
||||
|
||||
<b>- Absolutely NO anti-CCP sentiment</b><br><br>
|
||||
|
||||
All rules can and likely will be ignored at the discretion of the janitorial staff. Be funny, or at least compelling, and pretty much anything legal is welcome<br><br>
|
||||
|
||||
<font color="hotpink">𝐜𝐚𝐫𝐩 𝐰𝐨𝐳 𝐞𝐫𝐞</font><BR><BR>
|
||||
</div>
|
||||
{% endif %}
|
||||
<pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
<div class="col sidebar text-left d-none d-lg-block pt-3 pb-5 bg-white" style="max-width:300px">
|
||||
|
||||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% else %}
|
||||
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
|
||||
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=38' %}
|
||||
{% endif %}
|
||||
|
||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||
|
||||
{% if sub %}
|
||||
{% if sub.sidebar_html %}
|
||||
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
|
||||
{% endif %}
|
||||
{% if v %}
|
||||
<div class="d-lg-block d-none btn-block">
|
||||
{% if v.subs == 1 %}
|
||||
<a class="btn btn-primary btn-block mb-3 {% if v.subscribed_to(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/subscribe','subscribe-sub','unsubscribe-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')">SUBSCRIBE TO HOLE</a>
|
||||
<a class="btn btn-primary btn-block mb-3 {% if not v.subscribed_to(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unsubscribe','subscribe-sub','unsubscribe-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')">UNSUBSCRIBE FROM HOLE</a>
|
||||
{% else %}
|
||||
<a class="btn btn-primary btn-block mb-3 {% if v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/block','block-sub','unblock-sub');this.classList.toggle('d-none');nextElementSibling.classList.toggle('d-none')">BLOCK HOLE</a>
|
||||
<a class="btn btn-primary btn-block mb-3 {% if not v.blocks(sub.name) %}d-none{% endif %}" onclick="post_toast(this,'/h/{{sub.name}}/unblock','block-sub','unblock-sub');this.classList.toggle('d-none');previousElementSibling.classList.toggle('d-none')">UNBLOCK HOLE</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if v.id in (AEVANN_ID,CARP_ID) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/create_sub">CREATE HOLE</a>
|
||||
{% endif %}
|
||||
{% if v.mods(sub.name) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/settings">HOLE SETTINGS</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/mods">HOLE MODS</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/subscribers">HOLE SUBSCRIBERS</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/exilees">HOLE EXILEES</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub.name}}/blockers">HOLE BLOCKERS</a>
|
||||
{% else %}
|
||||
{% if v and v.id in (AEVANN_ID,CARP_ID) %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/create_sub">CREATE HOLE</a>
|
||||
{% endif %}
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/16583">EMOJI MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/18459">BUGS/SUGGESTIONS MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/32341">SIDEBAR ARTWORK MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/33652">SNAPPY QUOTES MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/35835">BANNER ARTWORK MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/37677">EMOJI REQUESTS MEGATHREAD</a>
|
||||
<a class="btn btn-primary btn-block mb-3" href="/post/39413">GAMBLING MEGATHREAD</a>
|
||||
|
||||
<div class="rules mt-4">
|
||||
Rulez:<br><br>
|
||||
|
||||
- Don't post anything illegal<br><br>
|
||||
|
||||
- No sexualizing minors even as a “joke”<br><br>
|
||||
|
||||
- No doxing<br><br>
|
||||
|
||||
- Using alts to game dramacoin will get you banned<br><br>
|
||||
|
||||
- Supporting free speech is an immediate ban<br><br>
|
||||
|
||||
<b>- Absolutely NO anti-CCP sentiment</b><br><br>
|
||||
|
||||
All rules can and likely will be ignored at the discretion of the janitorial staff. Be funny, or at least compelling, and pretty much anything legal is welcome<br><br>
|
||||
|
||||
<font color="hotpink">𝐜𝐚𝐫𝐩 𝐰𝐨𝐳 𝐞𝐫𝐞</font><BR><BR>
|
||||
</div>
|
||||
{% endif %}
|
||||
<pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
</div>
|
|
@ -636,13 +636,13 @@
|
|||
{% if p.ghost %}
|
||||
👻
|
||||
{% else %}
|
||||
{% if SITE_NAME=='Drama' and p.author.house %}
|
||||
{% if SITE_NAME=='rDrama' and p.author.house %}
|
||||
<img src="/assets/images/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
|
||||
{% endif %}
|
||||
|
||||
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
|
||||
{% endif %}
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold"class="user-name"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and SITE_NAME == 'Drama' %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %} <bdi style="color: #{{p.author.titlecolor}}"> {{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold"class="user-name"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and SITE_NAME == 'rDrama' %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %} <bdi style="color: #{{p.author.titlecolor}}"> {{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||
{% endif %}
|
||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" id="timestamp" onmouseover="timestamp('timestamp','{{p.created_utc}}')"> {{p.age_string}}</span>
|
||||
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>{{p.domain}}</a>{% else %}text post{% endif %})
|
||||
|
|
|
@ -188,13 +188,13 @@
|
|||
{% if p.ghost %}
|
||||
👻
|
||||
{% else %}
|
||||
{% if SITE_NAME=='Drama' and p.author.house %}
|
||||
{% if SITE_NAME=='rDrama' and p.author.house %}
|
||||
<img src="/assets/images/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
|
||||
{% endif %}
|
||||
|
||||
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
|
||||
{% endif %}
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and SITE_NAME == 'Drama' %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %}<bdi style="color: #{{p.author.titlecolor}}"> {{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||
<a class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level and SITE_NAME == 'rDrama' %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %}<bdi style="color: #{{p.author.titlecolor}}"> {{p.author.customtitle | safe}}</bdi>{% endif %}
|
||||
{% endif %}
|
||||
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}"> {{p.age_string}}</span>
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME=='Drama' and u.house %}
|
||||
{% if SITE_NAME=='rDrama' and u.house %}
|
||||
<img class="ml-3" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
|
||||
{% endif %}
|
||||
|
||||
|
@ -379,7 +379,7 @@
|
|||
</span>
|
||||
{% endif %}
|
||||
|
||||
{% if SITE_NAME=='Drama' and u.house %}
|
||||
{% if SITE_NAME=='rDrama' and u.house %}
|
||||
<img class="ml-2" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ INSERT INTO public.users (username, passhash, created_utc, admin_level, over_18,
|
|||
unban_utc, original_username, customtitle, defaultsorting, defaultsortingcomments, defaulttime, namecolor, titlecolor,
|
||||
customtitleplain, theme, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter,
|
||||
post_count, comment_count, background, verified, truecoins, cardview
|
||||
) VALUES ('Drama', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'Drama', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac',
|
||||
) VALUES ('rDrama', '', 0, 0, true, true, '', '', 0, false,
|
||||
0, 'rDrama', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac',
|
||||
'', 'dark', 'ff66ac', false, false, '', '', 0, 0,
|
||||
0, 0, '', 'Verified', 0, false),
|
||||
('AutoJanny', '', 0, 0, true, true, '', '', 0, false,
|
||||
|
|
Loading…
Reference in New Issue