Fix detecting account actor
This commit is contained in:
parent
346be1d478
commit
0d0a965f8a
|
@ -12,7 +12,7 @@ export function handlesToNameAndHost (handles: string[]) {
|
||||||
return handles.map(h => handleToNameAndHost(h))
|
return handles.map(h => handleToNameAndHost(h))
|
||||||
}
|
}
|
||||||
|
|
||||||
const accountType = new Set([ 'Person', 'Application', 'Group', 'Service', 'Organization' ])
|
const accountType = new Set([ 'Person', 'Application', 'Service', 'Organization' ])
|
||||||
export function isAccountActor (type: ActivityPubActorType) {
|
export function isAccountActor (type: ActivityPubActorType) {
|
||||||
return accountType.has(type)
|
return accountType.has(type)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue