mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Comment on how filter_by_subscriptions is dead.
(imported from commit c13b2ed003d78408b7c4f51ef5080658c2b4bcc7)
This commit is contained in:
		@@ -185,6 +185,9 @@ def get_huddle(id_list):
 | 
				
			|||||||
            s.save()
 | 
					            s.save()
 | 
				
			||||||
        return huddle
 | 
					        return huddle
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# This is currently dead code since all the places where we used to
 | 
				
			||||||
 | 
					# use it now have faster implementations, but I expect this to be
 | 
				
			||||||
 | 
					# potentially useful for code in the future, so not deleting it yet.
 | 
				
			||||||
def filter_by_subscriptions(zephyrs, user):
 | 
					def filter_by_subscriptions(zephyrs, user):
 | 
				
			||||||
    userprofile = UserProfile.objects.get(user=user)
 | 
					    userprofile = UserProfile.objects.get(user=user)
 | 
				
			||||||
    subscribed_zephyrs = []
 | 
					    subscribed_zephyrs = []
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user