dfs
This commit is contained in:
parent
1dc40e6700
commit
3771573d39
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ def publish(pid, v):
|
||||||
post.created_utc = int(time.time())
|
post.created_utc = int(time.time())
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
notify_users = NOTIFY_USERS(f'{post.body_html}{post.title}', v.id)
|
notify_users = NOTIFY_USERS(f'{post.body_html}{post.title}', v)
|
||||||
|
|
||||||
cid = notif_comment(f"@{v.username} has mentioned you: [{post.title}]({post.permalink})")
|
cid = notif_comment(f"@{v.username} has mentioned you: [{post.title}]({post.permalink})")
|
||||||
for x in notify_users:
|
for x in notify_users:
|
||||||
|
@ -547,7 +547,7 @@ def edit_post(pid, v):
|
||||||
g.db.add(n)
|
g.db.add(n)
|
||||||
|
|
||||||
|
|
||||||
notify_users = NOTIFY_USERS(f'{body_html}{title}', v.id)
|
notify_users = NOTIFY_USERS(f'{body_html}{title}', v)
|
||||||
|
|
||||||
soup = BeautifulSoup(body_html, features="html.parser")
|
soup = BeautifulSoup(body_html, features="html.parser")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue