remotes/1693045480750635534/spooky-22
Aevann1 2022-01-07 23:44:38 +02:00
parent e187b7b570
commit 8c809d2de4
13 changed files with 17 additions and 14 deletions

View File

@ -158,6 +158,7 @@ if SITE == 'rdrama.net':
IDIO_ID = 30
CARP_ID = 995
JOAN_ID = 28
MOOSE_ID = 1904
AEVANN_ID = 1
LAWLZ_ID = 3833
LLM_ID = 253
@ -183,6 +184,7 @@ elif SITE == "pcmemes.net":
IDIO_ID = 0
CARP_ID = 0
JOAN_ID = 0
MOOSE_ID = 0
AEVANN_ID = 1
LAWLZ_ID = 0
LLM_ID = 0
@ -208,6 +210,7 @@ else:
IDIO_ID = 0
CARP_ID = 0
JOAN_ID = 0
MOOSE_ID = 0
AEVANN_ID = 0
LAWLZ_ID = 0
LLM_ID = 0
@ -769,4 +772,4 @@ NOTIFIED_USERS = {
'kippy': KIPPY_ID,
}
num_banners = len(listdir('files/assets/images/Drama/banners')) + 1
num_banners = len(listdir('files/assets/images/Drama/banners')) + 1

View File

@ -205,7 +205,7 @@ def remove_meme_admin(v, username):
@admin_level_required(3)
@validate_formkey
def monthly(v):
if request.host == 'rdrama.net' and v.id != 1: abort (403)
if request.host == 'rdrama.net' and v.id != AEVANN_ID: abort (403)
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id

View File

@ -286,7 +286,7 @@ def api_comment(v):
parent_comment_id=parent_comment_id,
top_comment_id=top_comment_id,
level=level,
over_18=request.host == 'pcmemes.net' and v.id == 1578 or parent_post.over_18 or request.values.get("over_18","")=="true",
over_18=parent_post.over_18 or request.values.get("over_18","")=="true",
is_bot=is_bot,
app_id=v.client.application.id if v.client else None,
body_html=body_html,

View File

@ -197,7 +197,7 @@ def post_id(pid, anything=None, v=None):
offset = 0
if not request.headers.get("Authorization") and post.comment_count > 60 and not (v and v.id == 1):
if not request.headers.get("Authorization") and post.comment_count > 60:
comments2 = []
count = 0
if post.created_utc > 1638672040:
@ -951,7 +951,7 @@ def submit_post(v):
private=bool(request.values.get("private","")),
club=club,
author_id=v.id,
over_18=request.host == 'pcmemes.net' and v.id == 1578 or bool(request.values.get("over_18","")),
over_18=bool(request.values.get("over_18","")),
app_id=v.client.application.id if v.client else None,
is_bot = request.headers.get("Authorization"),
url=url,

View File

@ -162,7 +162,7 @@ def settings_profile_post(v):
else: template = 'CHRISTMAS/'
return render_template(f"{template}settings_profile.html", v=v, msg="Your enemies list has been updated.")
elif (v.patron or v.id == 1904) and request.values.get("sig"):
elif (v.patron or v.id == MOOSE_ID) and request.values.get("sig"):
sig = request.values.get("sig")[:200]
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', sig, re.MULTILINE):

View File

@ -63,7 +63,7 @@
</form>
<pre></pre>
{% if request.host != 'rdrama.net' or v.id == 1 %}
{% if request.host != 'rdrama.net' or v.id == AEVANN_ID %}
<div><a class="btn btn-danger" role="button" onclick="post_toast('/admin/monthly')">Grant Monthly Marseybux</a></div>
{% endif %}
{% endblock %}

View File

@ -245,7 +245,7 @@
{{c.options_html(v) | safe}}
{% endif %}
{% if c.author.sig_html and (c.author_id == 1904 or not (v and v.sigs_disabled)) %}
{% if c.author.sig_html and (c.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{c.author.sig_html | safe}}
{% endif %}

View File

@ -80,7 +80,7 @@
</div>
</div>
<script src="/static/assets/js/emoji_modal.js?a=30"></script>
<script src="/static/assets/js/emoji_modal.js?a=31"></script>
<style>
a.emojitab {

View File

@ -18,7 +18,7 @@
<tr>
<td style="font-weight: bold">{{loop.index}}</td>
<td style="font-weight: bold">{{marsey}}</td>
<td><img loading="lazy" data-bs-toggle="tooltip" alt=":{{marsey}}:" title=":{{marsey}}:" delay="0" src="/static/assets/images/emojis/{{marsey}}.webp?a=1000" ></td>
<td><img loading="lazy" data-bs-toggle="tooltip" alt=":{{marsey}}:" title=":{{marsey}}:" delay="0" src="/static/assets/images/emojis/{{marsey}}.webp?a=1001" ></td>
<td>{% if author in ('anton-d','unknown') %}{{author}}{% else %}<a style="font-weight:bold;" href="/@{{author}}"><img alt="@{{author}}'s profile picture" loading="lazy" src="/@{{author}}/pic" class="pp20">{{author}}</a>{% endif %}</td>
</tr>
{% endfor %}

View File

@ -614,7 +614,7 @@
</div>
{% if v.patron or v.id == 1904 %}
{% if v.patron or v.id == MOOSE_ID %}
<div class="body d-lg-flex border-bottom">
<label class="text-black w-lg-25">Signature</label>

View File

@ -458,7 +458,7 @@
</div>
{% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %}
{% if p.author.sig_html and (p.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{p.author.sig_html | safe}}
{% endif %}

View File

@ -513,7 +513,7 @@
<div class="d-none card rounded border pb-0 pt-3 my-2 {% if p.author.agendaposter %}agendaposter{% endif %}" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}}
{% if p.author.sig_html and (p.author_id == 1904 or not (v and v.sigs_disabled)) %}
{% if p.author.sig_html and (p.author_id == MOOSE_ID or not (v and v.sigs_disabled)) %}
<hr>
{{p.author.sig_html | safe}}
{% endif %}

View File

@ -11,7 +11,7 @@
</span>
<h2 class="h5">This account is private</h2>
<p class="text-muted">This user has enabled private mode to cloak their posting history.</p>
{% if u.id == 253 and request.host == 'rdrama.net' %}
{% if u.id == LLM_ID %}
{% if v and v.coins > 500 and not v.is_suspended %}
<a class="btn btn-primary" role="button", onclick="post_toast('/pay_rent', '1')">Pay rent to view profile (500 coins)</a>
{% endif %}