fd
This commit is contained in:
parent
d076a4f6ee
commit
15cccb530c
7 changed files with 15 additions and 15 deletions
|
@ -52,7 +52,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 'pcmemes.ga' in request.host: pid = 382
|
||||
else: pid = 1
|
||||
|
||||
try: pid = int(pid)
|
||||
|
@ -288,7 +288,7 @@ def api_comment(v):
|
|||
g.db.rollback()
|
||||
abort(413)
|
||||
|
||||
if 'pcmemes.net' in request.host: url = upload_ibb(file=file)
|
||||
if 'pcmemes.ga' in request.host: url = upload_ibb(file=file)
|
||||
else: url = upload_imgur(file=file)
|
||||
|
||||
body = request.form.get("body") + f"\n"
|
||||
|
@ -306,7 +306,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 'pcmemes.ga' 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,
|
||||
|
@ -702,7 +702,7 @@ def edit_comment(cid, v):
|
|||
g.db.rollback()
|
||||
abort(413)
|
||||
|
||||
if 'pcmemes.net' in request.host: url = upload_ibb(file=file)
|
||||
if 'pcmemes.ga' in request.host: url = upload_ibb(file=file)
|
||||
else: url = upload_imgur(file=file)
|
||||
|
||||
body += f"\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue