mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 15:03:08 +02:00
upd: change indexable
value to noindex
As described in https://docs.joinmastodon.org/entities/Account/#noindex
This commit is contained in:
parent
1a78ed400c
commit
2267f5a619
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue