disable custom emoji proxy temporary
https://github.com/misskey-dev/misskey/pull/9431#issuecomment-1373006446
This commit is contained in:
		
							parent
							
								
									3b617fafdd
								
							
						
					
					
						commit
						495d513efd
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -251,6 +251,10 @@ export class ClientServerService { | ||||||
| 
 | 
 | ||||||
| 			reply.header('Content-Security-Policy', 'default-src \'none\'; style-src \'unsafe-inline\''); | 			reply.header('Content-Security-Policy', 'default-src \'none\'; style-src \'unsafe-inline\''); | ||||||
| 
 | 
 | ||||||
|  | 			// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
 | ||||||
|  | 			return await reply.redirect(301, emoji.publicUrl ?? emoji.originalUrl); | ||||||
|  | 
 | ||||||
|  | 			/* https://github.com/misskey-dev/misskey/pull/9431#issuecomment-1373006446 | ||||||
| 			const url = new URL('/proxy/emoji.webp', this.config.url); | 			const url = new URL('/proxy/emoji.webp', this.config.url); | ||||||
| 			// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
 | 			// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
 | ||||||
| 			url.searchParams.set('url', emoji.publicUrl || emoji.originalUrl); | 			url.searchParams.set('url', emoji.publicUrl || emoji.originalUrl); | ||||||
|  | @ -261,6 +265,7 @@ export class ClientServerService { | ||||||
| 				301, | 				301, | ||||||
| 				url.toString(), | 				url.toString(), | ||||||
| 			); | 			); | ||||||
|  | 			*/ | ||||||
| 		}); | 		}); | ||||||
| 
 | 
 | ||||||
| 		fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => { | 		fastify.get<{ Params: { path: string } }>('/fluent-emoji/:path(.*)', async (request, reply) => { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue