fix: Invalid read param in forum thread api
This PR fixes the invalid read parameter being passed in forum update_thread api.
this was somehow introduced in this commit 6f522f3992 (diff-b9d08209a02c673887f6ca72b0018758174e95508539adbcb6885f22c7844eb8L292)
This commit is contained in:
committed by
David Ormsbee
parent
914887ff78
commit
ed45fbba37
@@ -215,7 +215,6 @@ class ThreadViewSetPartialUpdateTest(
|
||||
"anonymous_to_peers": False,
|
||||
"closed": False,
|
||||
"pinned": False,
|
||||
"read": True,
|
||||
"editing_user_id": str(self.user.id),
|
||||
}
|
||||
self.check_mock_called_with("update_thread", -1, **params)
|
||||
|
||||
@@ -287,7 +287,6 @@ class Model:
|
||||
"close_reason_code": request_params.get("close_reason_code"),
|
||||
"closing_user_id": request_params.get("closing_user_id"),
|
||||
"endorsed": request_params.get("endorsed"),
|
||||
"read": request_params.get("read"),
|
||||
}
|
||||
request_data = {k: v for k, v in request_data.items() if v is not None}
|
||||
response = forum_api.update_thread(**request_data)
|
||||
|
||||
Reference in New Issue
Block a user