remotes/1693045480750635534/spooky-22
Aevann1 2021-11-18 16:27:41 +02:00
parent 65d2090cd8
commit e1ad306ee7
3 changed files with 17 additions and 7 deletions

View File

@ -529,7 +529,9 @@ def api_comment(v):
if request.host == 'rdrama.net':
if 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if 'joan' in body_html.lower() and 28 not in notify_users: notify_users.add(28)
if 'carp' in body_html.lower() and 995 not in notify_users: notify_users.add(995)
if 'carp' in body_html.lower() and 995 not in notify_users:
notify_users.add(995)
notify_users.add(541)
if ('idio3' in body_html.lower() or 'idio ' in body_html.lower()) and 30 not in notify_users: notify_users.add(30)
for x in notify_users:
@ -770,7 +772,9 @@ def edit_comment(cid, v):
if request.host == 'rdrama.net':
if 'aevann' in body_html.lower() and 1 not in notify_users: notify_users.add(1)
if 'joan' in body_html.lower() and 28 not in notify_users: notify_users.add(28)
if 'carp' in body_html.lower() and 995 not in notify_users: notify_users.add(995)
if 'carp' in body_html.lower() and 995 not in notify_users:
notify_users.add(995)
notify_users.add(541)
if ('idio3' in body_html.lower() or 'idio ' in body_html.lower()) and 30 not in notify_users: notify_users.add(30)
for x in notify_users:

View File

@ -70,7 +70,9 @@ def publish(pid, v):
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 'carp' in f'{post.body_html}{post.title}'.lower() and 995 not in notify_users: notify_users.add(995)
if 'carp' in f'{post.body_html}{post.title}'.lower() and 995 not in notify_users:
notify_users.add(995)
notify_users.add(541)
if ('idio3' in f'{post.body_html}{post.title}'.lower() or 'idio ' in f'{post.body_html}{post.title}'.lower()) and 30 not in notify_users: notify_users.add(30)
for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: http://{site}{post.permalink}")
@ -334,7 +336,9 @@ def edit_post(pid, v):
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 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users: notify_users.add(995)
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
notify_users.add(995)
notify_users.add(541)
if ('idio3' in f'{body_html}{title}'.lower() or 'idio ' in f'{body_html}{title}'.lower()) and 30 not in notify_users: notify_users.add(30)
for x in notify_users:
@ -783,7 +787,9 @@ def submit_post(v):
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 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users: notify_users.add(995)
if 'carp' in f'{body_html}{title}'.lower() and 995 not in notify_users:
notify_users.add(995)
notify_users.add(541)
if ('idio3' in f'{body_html}{title}'.lower() or 'idio ' in f'{body_html}{title}'.lower()) and 30 not in notify_users: notify_users.add(30)
for x in notify_users: send_notification(x, f"@{v.username} has mentioned you: http://{site}{new_post.permalink}")

View File

@ -551,7 +551,7 @@
<div class="body d-lg-flex border-bottom">
<label class="text-black w-lg-25">{% if request.host == 'rdrama.net' and u.id == 2050 %}Friends{% else %}Bio{% endif %}</label>
<label class="text-black w-lg-25">{% if request.host == 'rdrama.net' and v.id == 2050 %}Friends{% else %}Bio{% endif %}</label>
<div class="w-lg-100">
<form id="profile-bio" action="/settings/profile" method="post" enctype="multipart/form-data">
@ -588,7 +588,7 @@
<div class="body d-lg-flex border-bottom">
<label class="text-black w-lg-25">{% if request.host == 'rdrama.net' and u.id == 2050 %}Bio{% else %}Friends{% endif %}</label>
<label class="text-black w-lg-25">{% if request.host == 'rdrama.net' and v.id == 2050 %}Bio{% else %}Friends{% endif %}</label>
<div class="w-lg-100">
<form id="profile-friends" action="/settings/profile" method="post" enctype="multipart/form-data">