summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/remote/activitypub/models/person.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index 28cbdb1ff7..94a6cee0bc 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -93,6 +93,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
const host = toUnicode(finger.subject.replace(/^.*?@/, '')).toLowerCase();
+ const isBot = object.type == 'Service';
+
// Create user
let user: IRemoteUser;
try {
@@ -117,7 +119,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
inbox: person.inbox,
endpoints: person.endpoints,
uri: person.id,
- url: person.url
+ url: person.url,
+ isBot
}) as IRemoteUser;
} catch (e) {
// duplicate key error