mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	digest: don't show new users for MIT.
(imported from commit b7453cb30e6fcf5b36a5e3e53f67faeb17e74048)
This commit is contained in:
		@@ -81,9 +81,12 @@ def gather_hot_conversations(user_profile, stream_messages):
 | 
				
			|||||||
def gather_new_users(user_profile, threshold):
 | 
					def gather_new_users(user_profile, threshold):
 | 
				
			||||||
    # Gather information on users in the realm who have recently
 | 
					    # Gather information on users in the realm who have recently
 | 
				
			||||||
    # joined.
 | 
					    # joined.
 | 
				
			||||||
    new_users = list(UserProfile.objects.filter(
 | 
					    if user_profile.realm.domain == "mit.edu":
 | 
				
			||||||
            realm=user_profile.realm, date_joined__gt=threshold,
 | 
					        new_users = []
 | 
				
			||||||
            is_bot=False))
 | 
					    else:
 | 
				
			||||||
 | 
					        new_users = list(UserProfile.objects.filter(
 | 
				
			||||||
 | 
					                realm=user_profile.realm, date_joined__gt=threshold,
 | 
				
			||||||
 | 
					                is_bot=False))
 | 
				
			||||||
    user_names = [user.full_name for user in new_users]
 | 
					    user_names = [user.full_name for user in new_users]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return len(user_names), user_names
 | 
					    return len(user_names), user_names
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user