mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	
							parent
							
								
									5a36c91bf1
								
							
						
					
					
						commit
						19204851a0
					
				
					 2 changed files with 8 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -18,15 +18,13 @@ export const getNoteSummary = (note: Packed<'Note'>): string => {
 | 
			
		|||
		return '(⛔)';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (note.cw != null) {
 | 
			
		||||
		return `CW: ${note.cw}`;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	let summary = '';
 | 
			
		||||
 | 
			
		||||
	// 本文
 | 
			
		||||
	if (note.text) {
 | 
			
		||||
		summary += note.text;
 | 
			
		||||
	if (note.cw != null) {
 | 
			
		||||
		summary += note.cw;
 | 
			
		||||
	} else {
 | 
			
		||||
		summary += note.text ? note.text : '';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// ファイルが添付されているとき
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,15 +23,13 @@ export const getNoteSummary = (note?: Misskey.entities.Note | null): string => {
 | 
			
		|||
		return `(${i18n.ts.invisibleNote})`;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (note.cw != null) {
 | 
			
		||||
		return `CW: ${note.cw}`;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	let summary = '';
 | 
			
		||||
 | 
			
		||||
	// 本文
 | 
			
		||||
	if (note.text) {
 | 
			
		||||
		summary += note.text;
 | 
			
		||||
	if (note.cw != null) {
 | 
			
		||||
		summary += note.cw;
 | 
			
		||||
	} else {
 | 
			
		||||
		summary += note.text ? note.text : '';
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// ファイルが添付されているとき
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue