mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	fix(backend): メール配信機能が無効ならばメールを送ることのないように (#13152)
Do not send email if email delivery is disabled
This commit is contained in:
		
							parent
							
								
									66714d94fc
								
							
						
					
					
						commit
						2c4ba4723f
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -40,6 +40,8 @@ export class EmailService {
 | 
				
			||||||
	public async sendEmail(to: string, subject: string, html: string, text: string) {
 | 
						public async sendEmail(to: string, subject: string, html: string, text: string) {
 | 
				
			||||||
		const meta = await this.metaService.fetch(true);
 | 
							const meta = await this.metaService.fetch(true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if (!meta.enableEmail) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const iconUrl = `${this.config.url}/static-assets/mi-white.png`;
 | 
							const iconUrl = `${this.config.url}/static-assets/mi-white.png`;
 | 
				
			||||||
		const emailSettingUrl = `${this.config.url}/settings/email`;
 | 
							const emailSettingUrl = `${this.config.url}/settings/email`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue