notify me when some1 starts an orgy

master
Aevann 2024-04-16 20:23:15 +02:00
parent 777c9a22bf
commit cd0acfccf3
1 changed files with 5 additions and 1 deletions

View File

@ -262,10 +262,14 @@ def schedule_orgy(v, chat_id):
ma = ModAction(
kind="schedule_orgy",
user_id=v.id,
_note=f'<a href="{data}" rel="nofollow noopener">{title}</a>',
_note=f'<a href="{normalized_link}" rel="nofollow noopener">{title}</a>',
)
g.db.add(ma)
if AEVANN_ID and v.id != AEVANN_ID:
text = f"@{v.username} has started [{title}]({normalized_link}) in [{chat.name}](/chat/{chat.id})"
send_repeatable_notification(AEVANN_ID, text)
return redirect(f"/chat/{chat_id}/orgies")
@app.post("/chat/<int:chat_id>/remove_orgy/<int:created_utc>")