diff options
| author | Marie <robloxfilmcam@gmail.com> | 2023-11-05 02:22:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-05 10:22:10 +0900 |
| commit | 2cce28533f3948e04c91e64379315dedc35ec71d (patch) | |
| tree | 8c594350aca905e693d8b7a979aa026f3f69eaab | |
| parent | enhance: 非通知なお知らせを作成できるように (diff) | |
| download | sharkey-2cce28533f3948e04c91e64379315dedc35ec71d.tar.gz sharkey-2cce28533f3948e04c91e64379315dedc35ec71d.tar.bz2 sharkey-2cce28533f3948e04c91e64379315dedc35ec71d.zip | |
fix(backend): isBot not being set on `Application` type (#12248)
* fix: bot not being set on all relays
* updatePerson missing the change
* chore: replace wrong word with correct word
| -rw-r--r-- | packages/backend/src/core/activitypub/models/ApPersonService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index d6a7de0601..bf38d5fd60 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -269,7 +269,7 @@ export class ApPersonService implements OnModuleInit { const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32); - const isBot = getApType(object) === 'Service'; + const isBot = getApType(object) === 'Service' || getApType(object) === 'Application'; const bday = person['vcard:bday']?.match(/^\d{4}-\d{2}-\d{2}/); @@ -456,7 +456,7 @@ export class ApPersonService implements OnModuleInit { emojis: emojiNames, name: truncate(person.name, nameLength), tags, - isBot: getApType(object) === 'Service', + isBot: getApType(object) === 'Service' || getApType(object) === 'Application', isCat: (person as any).isCat === true, isLocked: person.manuallyApprovesFollowers, movedToUri: person.movedTo ?? null, |