mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
refactor: Make acting_user a mandatory kwarg for do_set_realm_message_editing.
This commit is contained in:
@@ -859,7 +859,8 @@ def do_set_realm_message_editing(
|
|||||||
allow_message_editing: bool,
|
allow_message_editing: bool,
|
||||||
message_content_edit_limit_seconds: int,
|
message_content_edit_limit_seconds: int,
|
||||||
allow_community_topic_editing: bool,
|
allow_community_topic_editing: bool,
|
||||||
acting_user: Optional[UserProfile] = None,
|
*,
|
||||||
|
acting_user: Optional[UserProfile],
|
||||||
) -> None:
|
) -> None:
|
||||||
old_values = dict(
|
old_values = dict(
|
||||||
allow_message_editing=realm.allow_message_editing,
|
allow_message_editing=realm.allow_message_editing,
|
||||||
|
|||||||
@@ -1140,6 +1140,7 @@ class NormalActionsTest(BaseAction):
|
|||||||
allow_message_editing,
|
allow_message_editing,
|
||||||
message_content_edit_limit_seconds,
|
message_content_edit_limit_seconds,
|
||||||
False,
|
False,
|
||||||
|
acting_user=None,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
check_realm_update_dict("events[0]", events[0])
|
check_realm_update_dict("events[0]", events[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user