mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
api: Fix encoding of strings in streams endpoint.
* Remove unnecessary json_validator for string parameters. * Update frontend to pass right parameter. Bump api feature level and highlight the fix for `emojiset` parameter of `settings/display` endpoint in zulip.yaml file. Fixes part of #18035.
This commit is contained in:
committed by
Tim Abbott
parent
9abe1cafbe
commit
96e035a2f0
@@ -652,7 +652,7 @@ export function change_stream_name(e) {
|
||||
channel.patch({
|
||||
// Stream names might contain unsafe characters so we must encode it first.
|
||||
url: "/json/streams/" + stream_id,
|
||||
data: {new_name: JSON.stringify(new_name)},
|
||||
data: {new_name},
|
||||
success() {
|
||||
new_name_box.val("");
|
||||
ui_report.success(
|
||||
@@ -705,7 +705,7 @@ export function change_stream_description(e) {
|
||||
// Description might contain unsafe characters so we must encode it first.
|
||||
url: "/json/streams/" + stream_id,
|
||||
data: {
|
||||
description: JSON.stringify(description),
|
||||
description,
|
||||
},
|
||||
success() {
|
||||
// The event from the server will update the rest of the UI
|
||||
|
||||
Reference in New Issue
Block a user