rename mod_messages -> mod_chat
このコミットが含まれているのは:
コミット
476bf92379
|
@ -82,7 +82,7 @@ def comment(text, token, c_response, c_token, nonce):
|
|||
viewers[BROADCASTER_TOKEN]['verified'] = True
|
||||
return failure_reason
|
||||
|
||||
def mod_messages(message_ids, hide, ban, ban_and_purge):
|
||||
def mod_chat(message_ids, hide, ban, ban_and_purge):
|
||||
purge = ban_and_purge
|
||||
ban = ban_and_purge or ban
|
||||
|
||||
|
|
|
@ -231,9 +231,9 @@ def settings():
|
|||
return redirect(url_for('comment_iframe', token=token))
|
||||
|
||||
# TODO: undo hides; optionally show that a comment was hidden; optionally show bans in chat
|
||||
@current_app.route('/mod/messages', methods=['POST'])
|
||||
@current_app.route('/mod/chat', methods=['POST'])
|
||||
@current_app.auth.login_required
|
||||
def mod_messages():
|
||||
def mod_chat():
|
||||
message_ids = request.form.getlist('message_id[]')
|
||||
chat.mod_messages(message_ids, request.form.get('hide'), request.form.get('ban'), request.form.get('ban_purge'))
|
||||
return f'<meta http-equiv="refresh" content="0;url={url_for("chat_iframe")}"><div style="font-weight:bold;color:white;transform: scaleY(-1);">it is done</div>'
|
||||
|
|
読み込み中…
新しいイシューから参照