forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-11-03 16:06:20 +02:00
parent 8e710ded7c
commit 816b22464d
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ def publish(pid, v):
for follow in v.followers:
user = get_account(follow.user_id)
if post.club and not user.club_allowed: continue
send_notification(user.id, f"@{v.username} has made a new post: [{post.title}](http://{site}{post.permalink})", True)
cache.delete_memoized(frontlist)
@ -782,6 +783,7 @@ def submit_post(v):
for follow in v.followers:
user = get_account(follow.user_id)
if new_post.club and not user.club_allowed: continue
send_notification(user.id, f"@{v.username} has made a new post: [{title}](http://{site}{new_post.permalink})", True)
g.db.add(new_post)