notify me when some1 starts an orgy
parent
777c9a22bf
commit
cd0acfccf3
|
@ -262,10 +262,14 @@ def schedule_orgy(v, chat_id):
|
||||||
ma = ModAction(
|
ma = ModAction(
|
||||||
kind="schedule_orgy",
|
kind="schedule_orgy",
|
||||||
user_id=v.id,
|
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)
|
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")
|
return redirect(f"/chat/{chat_id}/orgies")
|
||||||
|
|
||||||
@app.post("/chat/<int:chat_id>/remove_orgy/<int:created_utc>")
|
@app.post("/chat/<int:chat_id>/remove_orgy/<int:created_utc>")
|
||||||
|
|
Loading…
Reference in New Issue