This commit is contained in:
		
							parent
							
								
									4bf3827b73
								
							
						
					
					
						commit
						2536bfb5f5
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -131,7 +131,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
 | 
			
		|||
			endpoints: person.endpoints,
 | 
			
		||||
			uri: person.id,
 | 
			
		||||
			url: person.url,
 | 
			
		||||
			isBot
 | 
			
		||||
			isBot: isBot,
 | 
			
		||||
			isCat: (person as any).isCat === true ? true : false
 | 
			
		||||
		}) as IRemoteUser;
 | 
			
		||||
	} catch (e) {
 | 
			
		||||
		// duplicate key error
 | 
			
		||||
| 
						 | 
				
			
			@ -262,7 +263,8 @@ export async function updatePerson(value: string | IObject, resolver?: Resolver)
 | 
			
		|||
			notesCount,
 | 
			
		||||
			name: person.name,
 | 
			
		||||
			url: person.url,
 | 
			
		||||
			endpoints: person.endpoints
 | 
			
		||||
			endpoints: person.endpoints,
 | 
			
		||||
			isCat: (person as any).isCat === true ? true : false
 | 
			
		||||
		}
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,6 +29,7 @@ export default async (user: ILocalUser) => {
 | 
			
		|||
		icon: user.avatarId && renderImage(avatar),
 | 
			
		||||
		image: user.bannerId && renderImage(banner),
 | 
			
		||||
		manuallyApprovesFollowers: user.isLocked,
 | 
			
		||||
		publicKey: renderKey(user)
 | 
			
		||||
		publicKey: renderKey(user),
 | 
			
		||||
		isCat: user.isCat
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue