mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	linkifiers: Use dictionaries for internal structures.
This change does not affect the API in anyway. All internal code now uses dictionaries to denote a linkifier, instead of tuples.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							68fe912c63
						
					
				
				
					commit
					52a86d9604
				
			@@ -232,8 +232,8 @@ from zerver.models import (
 | 
			
		||||
    get_user_by_id_in_realm_including_cross_realm,
 | 
			
		||||
    get_user_profile_by_id,
 | 
			
		||||
    is_cross_realm_bot_email,
 | 
			
		||||
    linkifiers_for_realm,
 | 
			
		||||
    query_for_ids,
 | 
			
		||||
    realm_filters_for_realm,
 | 
			
		||||
    validate_attachment_request,
 | 
			
		||||
)
 | 
			
		||||
from zerver.tornado.django_api import send_event
 | 
			
		||||
@@ -6493,7 +6493,7 @@ def do_mark_hotspot_as_read(user: UserProfile, hotspot: str) -> None:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def notify_linkifiers(realm: Realm) -> None:
 | 
			
		||||
    realm_filters = linkifiers_for_realm(realm.id)
 | 
			
		||||
    realm_filters = realm_filters_for_realm(realm.id)
 | 
			
		||||
    event = dict(type="realm_filters", realm_filters=realm_filters)
 | 
			
		||||
    send_event(realm, event, active_user_ids(realm.id))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user