refactor: ♻️ Use vcard:Nickname instead of vcard:Gender

This commit is contained in:
ThatOneCalculator 2022-05-23 19:07:39 -07:00
parent 82eb927dd4
commit e90d8e3b05
3 changed files with 4 additions and 4 deletions

View file

@ -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,
});

View file

@ -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) {

View file

@ -164,7 +164,7 @@ export interface IActor extends IObject {
endpoints?: {
sharedInbox?: string;
};
'vcard:Gender'?: string;
'vcard:Nickname'?: string;
'vcard:bday'?: string;
'vcard:Address'?: string;
}