diff options
author | H. Shay <hillerys@element.io> | 2023-08-24 15:12:24 -0700 |
---|---|---|
committer | H. Shay <hillerys@element.io> | 2023-08-24 15:12:24 -0700 |
commit | 890bfb415aec397e2e7a57fa597d3a6aa9ea7ae3 (patch) | |
tree | 295286a7d038c62bab234ee5b8e29641f45b84ed | |
parent | Update URLs to matrix.org blog categories. (#16008) (diff) | |
download | synapse-890bfb415aec397e2e7a57fa597d3a6aa9ea7ae3.tar.xz |
stop writing to column `user_id` of table `user_filters`
-rw-r--r-- | synapse/storage/databases/main/filtering.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/filtering.py b/synapse/storage/databases/main/filtering.py index 047de6283a..c79c2b1738 100644 --- a/synapse/storage/databases/main/filtering.py +++ b/synapse/storage/databases/main/filtering.py @@ -187,14 +187,13 @@ class FilteringWorkerStore(SQLBaseStore): filter_id = max_id + 1 sql = ( - "INSERT INTO user_filters (full_user_id, user_id, filter_id, filter_json)" - "VALUES(?, ?, ?, ?)" + "INSERT INTO user_filters (full_user_id, filter_id, filter_json)" + "VALUES(?, ?, ?)" ) txn.execute( sql, ( user_id.to_string(), - user_id.localpart, filter_id, bytearray(def_json), ), |