mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
gather_subscriptions: Fix missing subscriber data in email_dict.
When we added data on never_subscribed streams to what populate_subscribers is called on, we failed to add the corresponding data on subscribers to email_dict, the mapping of user IDs to emails for the subscribers.
This commit is contained in:
@@ -2759,7 +2759,7 @@ def gather_subscriptions_helper(user_profile):
|
||||
never_subscribed.append(stream_dict)
|
||||
|
||||
user_ids = set()
|
||||
for subs in [subscribed, unsubscribed]:
|
||||
for subs in [subscribed, unsubscribed, never_subscribed]:
|
||||
for sub in subs:
|
||||
if 'subscribers' in sub:
|
||||
for subscriber in sub['subscribers']:
|
||||
|
||||
Reference in New Issue
Block a user