refactor: ♻️ Use vcard:Nickname instead of vcard:Gender
				
					
				
			This commit is contained in:
		
							parent
							
								
									82eb927dd4
								
							
						
					
					
						commit
						e90d8e3b05
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -192,7 +192,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us | |||
| 				description: person.summary ? htmlToMfm(truncate(person.summary, summaryLength), person.tag) : null, | ||||
| 				url: getOneApHrefNullable(person.url), | ||||
| 				fields, | ||||
| 				pronouns: person['vcard:Gender'] || null, | ||||
| 				pronouns: person['vcard:Nickname'] || null, | ||||
| 				birthday: bday ? bday[0] : null, | ||||
| 				location: person['vcard:Address'] || null, | ||||
| 				userHost: host, | ||||
|  | @ -369,7 +369,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint | |||
| 		url: getOneApHrefNullable(person.url), | ||||
| 		fields, | ||||
| 		description: person.summary ? htmlToMfm(truncate(person.summary, summaryLength), person.tag) : null, | ||||
| 		pronouns: person['vcard:Gender'] || null, | ||||
| 		pronouns: person['vcard:Nickname'] || null, | ||||
| 		birthday: bday ? bday[0] : null, | ||||
| 		location: person['vcard:Address'] || null, | ||||
| 	}); | ||||
|  |  | |||
|  | @ -78,7 +78,7 @@ export async function renderPerson(user: ILocalUser) { | |||
| 	} as any; | ||||
| 
 | ||||
| 	if (profile?.pronouns) { | ||||
| 		person['vcard:Gender'] = profile.pronouns; | ||||
| 		person['vcard:Nickname'] = profile.pronouns; | ||||
| 	} | ||||
| 
 | ||||
| 	if (profile?.birthday) { | ||||
|  |  | |||
|  | @ -164,7 +164,7 @@ export interface IActor extends IObject { | |||
| 	endpoints?: { | ||||
| 		sharedInbox?: string; | ||||
| 	}; | ||||
| 	'vcard:Gender'?: string; | ||||
| 	'vcard:Nickname'?: string; | ||||
| 	'vcard:bday'?: string; | ||||
| 	'vcard:Address'?: string; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue