fdsfds
This commit is contained in:
parent
34d4b4748e
commit
ef403c53c1
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue