add (non-functional) suppress-embeds route

This commit is contained in:
Luna 2019-06-20 17:34:11 -03:00
parent edf1ed9a3d
commit 6eb51bb872
1 changed files with 9 additions and 0 deletions

View File

@ -611,3 +611,12 @@ async def _search_channel(channel_id):
""", channel_id, j['offset'], j['content'])
return jsonify(await search_result_from_list(rows))
@bp.route('/<int:channel_id>/messages/<int:message_id>/suppress-embeds')
async def suppress_embeds(channel_id: int, message_id: int):
"""Toggle the embeds in a message."""
j = validate({'suppress': {'type': 'boolean'}},
await request.get_json())
# TODO