fdsfsd
This commit is contained in:
parent
ad5a0f71a4
commit
c955478ab6
3 changed files with 12 additions and 12 deletions
|
@ -68,8 +68,8 @@ def publish(pid, v):
|
|||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||
|
||||
if request.host == 'rdrama.net':
|
||||
if 'aevann' in f'{post.body_html}{post.title}'.lower() and 1 not in notify_users: notify_users.add(1)
|
||||
if 'joan' in f'{post.body_html}{post.title}'.lower() and 28 not in notify_users: notify_users.add(28)
|
||||
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 ('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:
|
||||
notify_users.add(995)
|
||||
notify_users.add(541)
|
||||
|
@ -343,8 +343,8 @@ def edit_post(pid, v):
|
|||
message = f"@{v.username} has mentioned you: http://{site}{p.permalink}"
|
||||
|
||||
if request.host == 'rdrama.net':
|
||||
if 'aevann' in f'{body_html}{title}'.lower() and 1 not in notify_users: notify_users.add(1)
|
||||
if 'joan' in f'{body_html}{title}'.lower() and 28 not in notify_users: notify_users.add(28)
|
||||
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 ('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:
|
||||
notify_users.add(995)
|
||||
notify_users.add(541)
|
||||
|
@ -803,8 +803,8 @@ def submit_post(v):
|
|||
if user and not v.any_block_exists(user) and user.id != v.id: notify_users.add(user.id)
|
||||
|
||||
if request.host == 'rdrama.net':
|
||||
if 'aevann' in f'{body_html}{title}'.lower() and 1 not in notify_users: notify_users.add(1)
|
||||
if 'joan' in f'{body_html}{title}'.lower() and 28 not in notify_users: notify_users.add(28)
|
||||
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 ('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:
|
||||
notify_users.add(995)
|
||||
notify_users.add(541)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue