diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-23 19:18:14 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-23 19:18:14 +0900 |
| commit | 247f3343346a67bc6c41d5a5f98d23dfbf97a0a2 (patch) | |
| tree | 93f019053a9c887f7ef4fdbfe5d95d24d7408aee /src/remote/activitypub | |
| parent | Fix bug (diff) | |
| download | sharkey-247f3343346a67bc6c41d5a5f98d23dfbf97a0a2.tar.gz sharkey-247f3343346a67bc6c41d5a5f98d23dfbf97a0a2.tar.bz2 sharkey-247f3343346a67bc6c41d5a5f98d23dfbf97a0a2.zip | |
Fix
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 5 |
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 |