master
Aevann1 2022-03-31 17:49:12 +02:00
parent db53c1f666
commit 79952c87f4
2 changed files with 4 additions and 2 deletions

View File

@ -360,7 +360,7 @@ def api_comment(v):
if parent.author.any_block_exists(v) and v.admin_level < 2:
return {"error": "You can't reply to users who have blocked you, or users you have blocked."}, 403
is_bot = bool(request.headers.get("Authorization")) or v.id == SNAPPY_ID
is_bot = bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID)
if '!slots' not in body.lower() and '!blackjack' not in body.lower() and '!wordle' not in body.lower() and parent_post.id not in ADMIGGERS and not is_bot and not v.marseyawarded and AGENDAPOSTER_PHRASE not in body.lower() and len(body) > 10:
now = int(time.time())

View File

@ -1056,6 +1056,8 @@ def submit_post(v, sub=None):
if embed and len(embed) > 1500: embed = None
is_bot = bool(request.headers.get("Authorization")) or (SITE == 'pcmemes.net' and v.id == SNAPPY_ID)
post = Submission(
private=bool(request.values.get("private","")),
club=club,
@ -1063,7 +1065,7 @@ def submit_post(v, sub=None):
over_18=bool(request.values.get("over_18","")),
new=bool(request.values.get("new","")),
app_id=v.client.application.id if v.client else None,
is_bot = bool(request.headers.get("Authorization")) or v.id == SNAPPY_ID,
is_bot = is_bot,
url=url,
body=body[:20000],
body_html=body_html,