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.

actions: Use transaction.atomic for do_change_avatar_fields.

Sahil Batra5e506a833fbd
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 01f54dc04ed..e2d5cd6a924 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -4677,6 +4677,7 @@ def notify_avatar_url_change(user_profile: UserProfile) -> None:
)
[email protected](savepoint=False)
def do_change_avatar_fields(
user_profile: UserProfile,
avatar_source: str,