Skip to content

Commit

Permalink
fix(backend): isBot not being set on Application type (misskey-dev#…
Browse files Browse the repository at this point in the history
…12248)

* fix: bot not being set on all relays

* updatePerson missing the change

* chore: replace wrong word with correct word
  • Loading branch information
Mar0xy authored and kanarikanaru committed Nov 9, 2023
1 parent 80632f3 commit c7a89ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}/);

Expand Down Expand Up @@ -457,7 +457,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,
Expand Down

0 comments on commit c7a89ad

Please sign in to comment.