Skip to content

Commit b86d78c

Browse files
committed
Fix deletes by moderators
1 parent 6d062a8 commit b86d78c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

sogs/legacy_routes.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ def handle_legacy_delete_messages():
394394
if res.fetchone()[0]:
395395
abort(http.UNAUTHORIZED)
396396

397-
conn.execute(
398-
"""
399-
UPDATE messages SET data = NULL, data_size = NULL, signature = NULL
400-
WHERE room = ? AND id IN ({})
401-
""".format(
402-
in_params
403-
),
404-
[room.id, *ids],
405-
)
397+
conn.execute(
398+
"""
399+
UPDATE messages SET data = NULL, data_size = NULL, signature = NULL
400+
WHERE room = ? AND id IN ({})
401+
""".format(
402+
in_params
403+
),
404+
[room.id, *ids],
405+
)
406406

407407
return jsonify({'status_code': 200})
408408

0 commit comments

Comments
 (0)