Fix: AP object / actor type (#5086)
* attributedToがArrayの場合などに対応 * attachment以外で来るDocument系のObjectに対応 * Renote, Reply 対応 * 表示をいい感じに * fix type * revert as const * Fix Note / Question type * attributedToのtypeで複合配列を想定する
This commit is contained in:
		@@ -144,8 +144,8 @@ export class NoteRepository extends Repository<Note> {
 | 
			
		||||
 | 
			
		||||
		let text = note.text;
 | 
			
		||||
 | 
			
		||||
		if (note.name) {
 | 
			
		||||
			text = `【${note.name}】\n${note.text}`;
 | 
			
		||||
		if (note.name && note.uri) {
 | 
			
		||||
			text = `【${note.name}】\n${(note.text || '').trim()}\n${note.uri}`;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const reactionEmojis = unique(concat([note.emojis, Object.keys(note.reactions)]));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user