upd: change indexable value to noindex

As described in https://docs.joinmastodon.org/entities/Account/#noindex
This commit is contained in:
Mar0xy 2023-11-17 13:58:06 +01:00
parent 1a78ed400c
commit 2267f5a619
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 3 additions and 3 deletions

View file

@ -525,7 +525,7 @@ export class ApRendererService {
discoverable: user.isExplorable,
publicKey: this.renderKey(user, keypair, '#main-key'),
isCat: user.isCat,
isIndexable: user.isIndexable,
noindex: user.isIndexable,
speakAsCat: user.speakAsCat,
attachment: attachment.length ? attachment : undefined,
};

View file

@ -310,7 +310,7 @@ export class ApPersonService implements OnModuleInit {
backgroundId: null,
lastFetchedAt: new Date(),
name: truncate(person.name, nameLength),
isIndexable: person.isIndexable ?? true,
isIndexable: (person as any).noindex ?? true,
isLocked: person.manuallyApprovesFollowers,
movedToUri: person.movedTo,
movedAt: person.movedTo ? new Date() : null,
@ -477,7 +477,7 @@ export class ApPersonService implements OnModuleInit {
isBot: getApType(object) === 'Service' || getApType(object) === 'Application',
isCat: (person as any).isCat === true,
speakAsCat: (person as any).speakAsCat != null ? (person as any).speakAsCat === true : (person as any).isCat === true,
isIndexable: person.isIndexable ?? true,
isIndexable: (person as any).noindex ?? true,
isLocked: person.manuallyApprovesFollowers,
movedToUri: person.movedTo ?? null,
alsoKnownAs: person.alsoKnownAs ?? null,