mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Use modern huddle URLs in digest emails.
This commit is contained in:
@@ -21,10 +21,10 @@ def personal_narrow_url(realm: Realm, sender: UserProfile) -> str:
|
||||
pm_slug = str(sender.id) + '-' + hash_util_encode(email_user)
|
||||
return base_url + pm_slug
|
||||
|
||||
def pm_narrow_url(realm: Realm, participants: List[str]) -> str:
|
||||
participants.sort()
|
||||
def huddle_narrow_url(realm: Realm, other_user_ids: List[int]) -> str:
|
||||
pm_slug = ','.join(str(user_id) for user_id in sorted(other_user_ids)) + '-group'
|
||||
base_url = "%s/#narrow/pm-with/" % (realm.uri,)
|
||||
return base_url + hash_util_encode(",".join(participants))
|
||||
return base_url + pm_slug
|
||||
|
||||
def stream_narrow_url(realm: Realm, stream: Stream) -> str:
|
||||
base_url = "%s/#narrow/stream/" % (realm.uri,)
|
||||
|
||||
Reference in New Issue
Block a user