remotes/1693045480750635534/spooky-22
Aevann1 2021-12-31 16:12:26 +02:00
parent 6d5c0a5110
commit 483e878abc
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ def publish(pid, v):
cache.delete_memoized(frontlist)
cache.delete_memoized(User.userpagelisting)
if v.admin_level > 1 and ("[changelog]" in new_post.title or "(changelog)" in new_post.title):
send_discord_message(f"https://{site}{new_post.permalink}")
cache.delete_memoized(changeloglist)
g.db.commit()