mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	* fix(frontend): リノートの判定が甘いのを修正 * fix * Update Changelog * fix * use type assertion * fix + add comments * lint * misskey-jsに移動 * PureRenote -> Renote * isRenote -> isPureRenote
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import type { Note, PureRenote } from './entities.js';
 | |
| 
 | |
| export function isPureRenote(note: Note): note is PureRenote {
 | |
| 	return (
 | |
| 		note.renote != null &&
 | |
| 		note.reply == null &&
 | |
| 		note.text == null &&
 | |
| 		note.cw == null &&
 | |
| 		(note.fileIds == null || note.fileIds.length === 0) &&
 | |
| 		note.poll == null
 | |
| 	);
 | |
| }
 |