forked from rDrama/rDrama
dfdf\
parent
339c3f2dca
commit
a7347f4a0b
|
@ -547,6 +547,8 @@ def api_comment(v):
|
||||||
if v.any_block_exists(user): continue
|
if v.any_block_exists(user): continue
|
||||||
if user.id != v.id: notify_users.add(user.id)
|
if user.id != v.id: notify_users.add(user.id)
|
||||||
|
|
||||||
|
if request.host == 'pcmemes.net':
|
||||||
|
if 'kippy' in body_html.lower() and 1592 not in notify_users: notify_users.add(1592)
|
||||||
if request.host in ['rdrama.net','pcmemes.net']:
|
if request.host in ['rdrama.net','pcmemes.net']:
|
||||||
if ('aevan' in body_html.lower() or 'avean' in body_html.lower()) and 1 not in notify_users: notify_users.add(1)
|
if ('aevan' in body_html.lower() or 'avean' in body_html.lower()) and 1 not in notify_users: notify_users.add(1)
|
||||||
if request.host == 'rdrama.net':
|
if request.host == 'rdrama.net':
|
||||||
|
@ -817,6 +819,8 @@ def edit_comment(cid, v):
|
||||||
if v.any_block_exists(user): continue
|
if v.any_block_exists(user): continue
|
||||||
if user.id != v.id: notify_users.add(user.id)
|
if user.id != v.id: notify_users.add(user.id)
|
||||||
|
|
||||||
|
if request.host == 'pcmemes.net':
|
||||||
|
if 'kippy' in body_html.lower() and 1592 not in notify_users: notify_users.add(1592)
|
||||||
if request.host in ['rdrama.net','pcmemes.net']:
|
if request.host in ['rdrama.net','pcmemes.net']:
|
||||||
if ('aevan' in body_html.lower() or 'avean' in body_html.lower()) and 1 not in notify_users: notify_users.add(1)
|
if ('aevan' in body_html.lower() or 'avean' in body_html.lower()) and 1 not in notify_users: notify_users.add(1)
|
||||||
if request.host == 'rdrama.net':
|
if request.host == 'rdrama.net':
|
||||||
|
|
|
@ -58,9 +58,10 @@ def publish(pid, v):
|
||||||
user = g.db.query(User).filter_by(username=username).first()
|
user = g.db.query(User).filter_by(username=username).first()
|
||||||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||||
|
|
||||||
|
if request.host == 'pcmemes.net':
|
||||||
|
if 'kippy' in f'{post.body_html}{post.title}'.lower() and 1592 not in notify_users: notify_users.add(1592)
|
||||||
if request.host in ['rdrama.net','pcmemes.net']:
|
if request.host in ['rdrama.net','pcmemes.net']:
|
||||||
if ('aevan' in f'{post.body_html}{post.title}'.lower() or 'avean' in f'{post.body_html}{post.title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
if ('aevan' in f'{post.body_html}{post.title}'.lower() or 'avean' in f'{post.body_html}{post.title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
||||||
|
|
||||||
if request.host == 'rdrama.net':
|
if request.host == 'rdrama.net':
|
||||||
if ('joan' in f'{post.body_html}{post.title}'.lower() or 'pewkie' in f'{post.body_html}{post.title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
if ('joan' in f'{post.body_html}{post.title}'.lower() or 'pewkie' in f'{post.body_html}{post.title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
||||||
if 'carp' in f'{post.body_html}{post.title}'.lower() and 995 not in notify_users:
|
if 'carp' in f'{post.body_html}{post.title}'.lower() and 995 not in notify_users:
|
||||||
|
@ -363,9 +364,10 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
message = f"@{v.username} has mentioned you: http://{site}{p.permalink}"
|
message = f"@{v.username} has mentioned you: http://{site}{p.permalink}"
|
||||||
|
|
||||||
|
if request.host == 'pcmemes.net':
|
||||||
|
if 'kippy' in f'{body_html}{title}'.lower() and 1592 not in notify_users: notify_users.add(1592)
|
||||||
if request.host in ['rdrama.net','pcmemes.net']:
|
if request.host in ['rdrama.net','pcmemes.net']:
|
||||||
if ('aevan' in f'{body_html}{title}'.lower() or 'avean' in f'{body_html}{title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
if ('aevan' in f'{body_html}{title}'.lower() or 'avean' in f'{body_html}{title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
||||||
|
|
||||||
if request.host == 'rdrama.net':
|
if request.host == 'rdrama.net':
|
||||||
if ('joan' in f'{body_html}{title}'.lower() or 'pewkie' in f'{body_html}{title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
if ('joan' in f'{body_html}{title}'.lower() or 'pewkie' in f'{body_html}{title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
||||||
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
|
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
|
||||||
|
@ -846,9 +848,10 @@ def submit_post(v):
|
||||||
user = g.db.query(User).filter_by(username=username).first()
|
user = g.db.query(User).filter_by(username=username).first()
|
||||||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||||
|
|
||||||
|
if request.host == 'pcmemes.net':
|
||||||
|
if 'kippy' in f'{body_html}{title}'.lower() and 1592 not in notify_users: notify_users.add(1592)
|
||||||
if request.host in ['rdrama.net','pcmemes.net']:
|
if request.host in ['rdrama.net','pcmemes.net']:
|
||||||
if ('aevan' in f'{body_html}{title}'.lower() or 'avean' in f'{body_html}{title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
if ('aevan' in f'{body_html}{title}'.lower() or 'avean' in f'{body_html}{title}'.lower()) and 1 not in notify_users: notify_users.add(1)
|
||||||
|
|
||||||
if request.host == 'rdrama.net':
|
if request.host == 'rdrama.net':
|
||||||
if ('joan' in f'{body_html}{title}'.lower() or 'pewkie' in f'{body_html}{title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
if ('joan' in f'{body_html}{title}'.lower() or 'pewkie' in f'{body_html}{title}'.lower()) and 28 not in notify_users: notify_users.add(28)
|
||||||
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
|
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
|
||||||
|
|
Loading…
Reference in New Issue