dfdf\
This commit is contained in:
parent
ee30586be6
commit
e2af16e81f
2 changed files with 11 additions and 4 deletions
|
@ -547,6 +547,8 @@ def api_comment(v):
|
|||
if v.any_block_exists(user): continue
|
||||
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 ('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':
|
||||
|
@ -817,6 +819,8 @@ def edit_comment(cid, v):
|
|||
if v.any_block_exists(user): continue
|
||||
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 ('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':
|
||||
|
|
|
@ -57,10 +57,11 @@ def publish(pid, v):
|
|||
username = mention["href"].split("@")[1]
|
||||
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 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 ('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 ('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:
|
||||
|
@ -363,9 +364,10 @@ def edit_post(pid, v):
|
|||
|
||||
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 ('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 ('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:
|
||||
|
@ -846,9 +848,10 @@ def submit_post(v):
|
|||
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 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 ('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 ('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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue