better func name

pull/221/head
Aevann 2024-01-14 10:54:01 +02:00
parent 4309960b25
commit 9752c2340a
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ def notif_comment(text):
return create_comment(text_html)
def notif_comment2(p):
def notif_comment_mention(p):
if p.ghost:
author_link = '@👻'
else:

View File

@ -63,7 +63,7 @@ def publish(pid, v):
notify_users = NOTIFY_USERS(f'{p.title} {p.body}', v, ghost=p.ghost, obj=p, followers_ping=False)
if notify_users:
cid, text = notif_comment2(p)
cid, text = notif_comment_mention(p)
if notify_users == 'everyone':
alert_everyone(cid)
else:
@ -670,7 +670,7 @@ def submit_post(v, hole=None):
notify_users = NOTIFY_USERS(f'{title} {body}', v, ghost=p.ghost, obj=p, followers_ping=False)
if notify_users:
cid, text = notif_comment2(p)
cid, text = notif_comment_mention(p)
if notify_users == 'everyone':
alert_everyone(cid)
else:
@ -999,7 +999,7 @@ def edit_post(pid, v):
if not p.private:
notify_users = NOTIFY_USERS(f'{title} {body}', v, oldtext=f'{p.title} {p.body}', ghost=p.ghost, obj=p, followers_ping=False)
if notify_users:
cid, text = notif_comment2(p)
cid, text = notif_comment_mention(p)
if notify_users == 'everyone':
alert_everyone(cid)
else: