Fix #1473
This commit is contained in:
		
							parent
							
								
									e6edec5b87
								
							
						
					
					
						commit
						0e2bb5bddc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -75,7 +75,9 @@ export async function createNote(value: any, resolver?: Resolver, silent = false
 | 
			
		|||
	// リプライ
 | 
			
		||||
	const reply = note.inReplyTo ? await resolveNote(note.inReplyTo, resolver) : null;
 | 
			
		||||
 | 
			
		||||
	const { window } = new JSDOM(note.content);
 | 
			
		||||
	// MastodonはHTMLを送り付けてくる
 | 
			
		||||
	// そして改行は<br />で表現されている
 | 
			
		||||
	const { window } = new JSDOM(note.content.replace(/<br \/>/g, '\n'));
 | 
			
		||||
 | 
			
		||||
	// ユーザーの情報が古かったらついでに更新しておく
 | 
			
		||||
	if (actor.updatedAt == null || Date.now() - actor.updatedAt.getTime() > 1000 * 60 * 60 * 24) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue