Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Use URL in thumbnail status example setup.

Moustafa Mohamed Elsayedb66819b7bafc
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py
index 1daa5a43374..585cc8d5459 100644
--- a/zerver/openapi/python_examples.py
+++ b/zerver/openapi/python_examples.py
@@ -1814,8 +1814,8 @@ def check_thumbnail_status(client: Client) -> None:
with open(path_to_file, "rb") as fp:
result = client.upload_file(fp)
- uri = result["uri"]
- parts = uri.split("/")
+ url = result["url"]
+ parts = url.split("/")
realm_id_str = parts[2]
filename = "/".join(parts[3:])