remove unnecessary body

pull/134/head
Aevann 2023-02-24 09:16:50 +02:00
parent b3e8563efb
commit 6fcc525772
1 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,6 @@ def request_api_keys(v):
new_comment = Comment(author_id=AUTOJANNY_ID,
parent_submission=None,
level=1,
body=body,
body_html=body_html,
sentto=MODMAIL_ID,
distinguish_level=6,
@ -85,7 +84,7 @@ def request_api_keys(v):
notif = Notification(comment_id=new_comment.id, user_id=admin_id)
g.db.add(notif)
push_notif(admin_ids, 'New notification', new_comment.body, f'{SITE_FULL}/comment/{new_comment.id}?read=true#context')
push_notif(admin_ids, 'New notification', body, f'{SITE_FULL}/comment/{new_comment.id}?read=true#context')
return redirect('/settings/apps')