mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:12:24 -05:00 
			
		
		
		
	[frontend] Use new GET custom_emoji admin api (#908)
* use new GET custom_emoji admin api * use url instead of static_url, add link to emoji admin api tracking issue * fetch all local emoji
This commit is contained in:
		
					parent
					
						
							
								30aaedb0a8
							
						
					
				
			
			
				commit
				
					
						3ca7164455
					
				
			
		
					 5 changed files with 77 additions and 30 deletions
				
			
		|  | @ -164,7 +164,7 @@ module.exports = function ({ apiCall, getChanges }) { | |||
| 		fetchCustomEmoji: function fetchCustomEmoji() { | ||||
| 			return function (dispatch, _getState) { | ||||
| 				return Promise.try(() => { | ||||
| 					return dispatch(apiCall("GET", "/api/v1/custom_emojis")); | ||||
| 					return dispatch(apiCall("GET", "/api/v1/admin/custom_emojis?filter=domain:local&limit=0")); | ||||
| 				}).then((emoji) => { | ||||
| 					return dispatch(admin.setEmoji(emoji)); | ||||
| 				}); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue