This commit is contained in:
Aevann1 2022-04-18 20:30:25 +02:00
parent d833e3916c
commit aa7581a440

View file

@ -1218,7 +1218,7 @@ def submit_post(v, sub=None):
for x in notify_users: for x in notify_users:
add_notif(cid, x) add_notif(cid, x)
if request.values.get('followers') and v.followers: if (request.values.get('followers') or is_bot) and v.followers:
text = f"@{v.username} has made a new post: [{post.title}]({post.shortlink})" text = f"@{v.username} has made a new post: [{post.title}]({post.shortlink})"
if post.sub: text += f" in <a href='/h/{post.sub}'>/h/{post.sub}" if post.sub: text += f" in <a href='/h/{post.sub}'>/h/{post.sub}"