mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	topics: Fix get_topics_backend logic for zephyr realms.
This removes a check on invite_only, that should have been a check on history_public_to_subscribers. In addition to fixing a bug for zephyr realms, it also makes "more topics" work correctly for realms using the new settings for stream history being public to subscribers.
This commit is contained in:
		@@ -444,7 +444,7 @@ def get_topics_backend(request: HttpRequest, user_profile: UserProfile,
 | 
			
		||||
    result = get_topic_history_for_stream(
 | 
			
		||||
        user_profile=user_profile,
 | 
			
		||||
        recipient=recipient,
 | 
			
		||||
        public_history=not stream.invite_only,
 | 
			
		||||
        public_history=stream.is_history_public_to_subscribers(),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    return json_success(dict(topics=result))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user