Fix bug
This commit is contained in:
		
							parent
							
								
									d5379e2b36
								
							
						
					
					
						commit
						b78d24be1e
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
					@ -328,8 +328,18 @@ async function insertNote(user: IUser, data: Option, tokens: ReturnType<typeof p
 | 
				
			||||||
			: [],
 | 
								: [],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// 以下非正規化データ
 | 
							// 以下非正規化データ
 | 
				
			||||||
		_reply: data.reply ? { userId: data.reply.userId } : null,
 | 
							_reply: data.reply ? {
 | 
				
			||||||
		_renote: data.renote ? { userId: data.renote.userId } : null,
 | 
								userId: data.reply.userId,
 | 
				
			||||||
 | 
								user: {
 | 
				
			||||||
 | 
									host: data.reply._user.host
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							} : null,
 | 
				
			||||||
 | 
							_renote: data.renote ? {
 | 
				
			||||||
 | 
								userId: data.renote.userId,
 | 
				
			||||||
 | 
								user: {
 | 
				
			||||||
 | 
									host: data.reply._user.host
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							} : null,
 | 
				
			||||||
		_user: {
 | 
							_user: {
 | 
				
			||||||
			host: user.host,
 | 
								host: user.host,
 | 
				
			||||||
			inbox: isRemoteUser(user) ? user.inbox : undefined
 | 
								inbox: isRemoteUser(user) ? user.inbox : undefined
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue