rename
This commit is contained in:
		
							parent
							
								
									38f84a94ba
								
							
						
					
					
						commit
						4fdec4015b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -63,7 +63,7 @@ export async function populateEmoji(emojiName: string, noteUserHost: string | nu | ||||||
| 
 | 
 | ||||||
| 	const isLocal = emoji.host == null; | 	const isLocal = emoji.host == null; | ||||||
| 	const emojiUrl = emoji.publicUrl || emoji.originalUrl; // || emoji.originalUrl してるのは後方互換性のため
 | 	const emojiUrl = emoji.publicUrl || emoji.originalUrl; // || emoji.originalUrl してるのは後方互換性のため
 | ||||||
| 	const url = isLocal ? emojiUrl : `${config.url}/proxy/image.png?${query({ url: emojiUrl })}`; | 	const url = isLocal ? emojiUrl : `${config.url}/proxy/image.webp?${query({ url: emojiUrl })}`; | ||||||
| 
 | 
 | ||||||
| 	return { | 	return { | ||||||
| 		name: emojiName, | 		name: emojiName, | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ module.exports = async (ctx: Koa.Context) => { | ||||||
| function wrap(url?: string): string | null { | function wrap(url?: string): string | null { | ||||||
| 	return url != null | 	return url != null | ||||||
| 		? url.match(/^https?:\/\//) | 		? url.match(/^https?:\/\//) | ||||||
| 			? `${config.url}/proxy/preview.jpg?${query({ | 			? `${config.url}/proxy/preview.webp?${query({ | ||||||
| 				url, | 				url, | ||||||
| 				preview: '1', | 				preview: '1', | ||||||
| 			})}` | 			})}` | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue