mirror of https://github.com/zulip/zulip.git
gather_subscriptions: Tighten the query for Subscription objects.
(imported from commit a7caed32e52f68c7d6e33e15a7954df4fe90d797)
This commit is contained in:
parent
f26a23a5fa
commit
382dd64ce9
|
@ -1452,7 +1452,7 @@ def decode_email_address(email):
|
|||
|
||||
def gather_subscriptions(user_profile):
|
||||
# For now, don't display subscriptions for private messages.
|
||||
subs = Subscription.objects.select_related().filter(
|
||||
subs = Subscription.objects.select_related("recipient").filter(
|
||||
user_profile = user_profile,
|
||||
recipient__type = Recipient.STREAM)
|
||||
|
||||
|
|
Loading…
Reference in New Issue