fix 500 error

pull/225/head
Aevann 2024-03-05 04:45:39 +02:00
parent 154855ae7a
commit dd41c27298
1 changed files with 3 additions and 1 deletions

View File

@ -1977,6 +1977,8 @@ def schedule_orgy(v):
else:
abort(400)
data = data.strip()
orgy = Orgy(
title=title,
type=orgy_type,
@ -1989,7 +1991,7 @@ def schedule_orgy(v):
ma = ModAction(
kind="schedule_orgy",
user_id=v.id,
_note=filter_emojis_only(data, link=True),
_note=f'<a href="{data}" rel="nofollow noopener">{title}</a>',
)
g.db.add(ma)