Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hotspots: Fix typos in function name and code comment.
Sumanth V Rao540cca595c5b
diff --git a/static/js/gear_menu.js b/static/js/gear_menu.jsindex 89e15c4001a..9a42bc3d8a0 100644--- a/static/js/gear_menu.js+++ b/static/js/gear_menu.js@@ -7,7 +7,7 @@ menu function. In this comment I try to helpyou know where to look for relevant code.The module that you're reading now doesn't-actually doesn't do much of the work.+actually do much of the work.Our gear menu has these choices:diff --git a/zerver/lib/create_user.py b/zerver/lib/create_user.pyindex 0e284c4e5ed..a5135084bb5 100644--- a/zerver/lib/create_user.py+++ b/zerver/lib/create_user.py@@ -4,7 +4,7 @@ import orjsonfrom django.contrib.auth.models import UserManagerfrom django.utils.timezone import now as timezone_now-from zerver.lib.hotspots import copy_hotpots+from zerver.lib.hotspots import copy_hotspotsfrom zerver.lib.upload import copy_avatarfrom zerver.lib.utils import generate_api_keyfrom zerver.models import (@@ -48,7 +48,7 @@ def copy_user_settings(source_profile: UserProfile, target_profile: UserProfile))copy_avatar(source_profile, target_profile)- copy_hotpots(source_profile, target_profile)+ copy_hotspots(source_profile, target_profile)def get_display_email_address(user_profile: UserProfile) -> str:diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.pyindex 38b264aa969..cc5aa50c163 100644--- a/zerver/lib/hotspots.py+++ b/zerver/lib/hotspots.py@@ -83,7 +83,7 @@ def get_next_hotspots(user: UserProfile) -> List[Dict[str, object]]:return []-def copy_hotpots(source_profile: UserProfile, target_profile: UserProfile) -> None:+def copy_hotspots(source_profile: UserProfile, target_profile: UserProfile) -> None:for userhotspot in frozenset(UserHotspot.objects.filter(user=source_profile)):UserHotspot.objects.create(user=target_profile, hotspot=userhotspot.hotspot, timestamp=userhotspot.timestamp