diff options
| author | mei23 <m@m544.net> | 2018-07-08 17:22:11 +0900 |
|---|---|---|
| committer | mei23 <m@m544.net> | 2018-07-08 17:22:11 +0900 |
| commit | a796a68e8a64316378266681b3bb5cf718f6500b (patch) | |
| tree | 57605bf4a0e560e7c3c2a92d4d38fc5ec748f20d /src/remote/activitypub/kernel | |
| parent | 4.16.1 (diff) | |
| download | sharkey-a796a68e8a64316378266681b3bb5cf718f6500b.tar.gz sharkey-a796a68e8a64316378266681b3bb5cf718f6500b.tar.bz2 sharkey-a796a68e8a64316378266681b3bb5cf718f6500b.zip | |
Fix can't process follow accept/reject from remote
Diffstat (limited to 'src/remote/activitypub/kernel')
| -rw-r--r-- | src/remote/activitypub/kernel/accept/follow.ts | 2 | ||||
| -rw-r--r-- | src/remote/activitypub/kernel/reject/follow.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/kernel/accept/follow.ts b/src/remote/activitypub/kernel/accept/follow.ts index 0f414ba321..07c820c28a 100644 --- a/src/remote/activitypub/kernel/accept/follow.ts +++ b/src/remote/activitypub/kernel/accept/follow.ts @@ -5,7 +5,7 @@ import accept from '../../../../services/following/requests/accept'; import { IFollow } from '../../type'; export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => { - const id = typeof activity.object == 'string' ? activity.object : activity.object.id; + const id = typeof activity.actor == 'string' ? activity.actor : activity.actor.id; if (!id.startsWith(config.url + '/')) { return null; diff --git a/src/remote/activitypub/kernel/reject/follow.ts b/src/remote/activitypub/kernel/reject/follow.ts index c139865d0e..35cd2ec0c9 100644 --- a/src/remote/activitypub/kernel/reject/follow.ts +++ b/src/remote/activitypub/kernel/reject/follow.ts @@ -5,7 +5,7 @@ import reject from '../../../../services/following/requests/reject'; import { IFollow } from '../../type'; export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => { - const id = typeof activity.object == 'string' ? activity.object : activity.object.id; + const id = typeof activity.actor == 'string' ? activity.actor : activity.actor.id; if (!id.startsWith(config.url + '/')) { return null; |