mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	reactions: Store the emoji codepoint in the database.
This is the first part of a larger migration to convert Zulip's reactions storage to something based on the codepoint, not the emoji name that the user typed in, so that we don't need to worry about changes in the names we're using breaking the emoji storage.
This commit is contained in:
		@@ -251,6 +251,8 @@ class ReactionDict(object):
 | 
			
		||||
    def build_dict_from_raw_db_row(row):
 | 
			
		||||
        # type: (Dict[str, Any]) -> Dict[str, Any]
 | 
			
		||||
        return {'emoji_name': row['emoji_name'],
 | 
			
		||||
                'emoji_code': row['emoji_code'],
 | 
			
		||||
                'reaction_type': row['reaction_type'],
 | 
			
		||||
                'user': {'email': row['user_profile__email'],
 | 
			
		||||
                         'id': row['user_profile__id'],
 | 
			
		||||
                         'full_name': row['user_profile__full_name']}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user