diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-08 05:07:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-08 05:07:17 +0900 |
| commit | 0004944708c049aba54bb61898d5dc2bf3c97f14 (patch) | |
| tree | 928773e8fe972fd9b7a1e21975f21a6aefed856e /src | |
| parent | Fix bugs (diff) | |
| download | sharkey-0004944708c049aba54bb61898d5dc2bf3c97f14.tar.gz sharkey-0004944708c049aba54bb61898d5dc2bf3c97f14.tar.bz2 sharkey-0004944708c049aba54bb61898d5dc2bf3c97f14.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/act/follow.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/act/follow.ts b/src/remote/activitypub/act/follow.ts index 3dd029af54..236886dc60 100644 --- a/src/remote/activitypub/act/follow.ts +++ b/src/remote/activitypub/act/follow.ts @@ -6,7 +6,7 @@ import { IFollow } from '../type'; export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => { const prefix = config.url + '/@'; - const id = typeof activity == 'string' ? activity : activity.id; + const id = typeof activity.object == 'string' ? activity.object : activity.object.id; if (!id.startsWith(prefix)) { return null; |