diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-07-08 19:30:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-08 19:30:56 +0900 |
| commit | a7ff8678b5c14c1ce2c355d167fe82beccc7eb00 (patch) | |
| tree | 8b65a2e623d7e85ffb0c8d19cec8d4b91ad55057 /src | |
| parent | Merge pull request #1863 from syuilo/greenkeeper/file-type-8.1.0 (diff) | |
| parent | Fix can't process cancel of follow request from remote (diff) | |
| download | misskey-a7ff8678b5c14c1ce2c355d167fe82beccc7eb00.tar.gz misskey-a7ff8678b5c14c1ce2c355d167fe82beccc7eb00.tar.bz2 misskey-a7ff8678b5c14c1ce2c355d167fe82beccc7eb00.zip | |
Merge pull request #1871 from mei23/mei-apreq3
フォロー申請結果とフォロー申請解除の処理の修正
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/kernel/accept/follow.ts | 2 | ||||
| -rw-r--r-- | src/remote/activitypub/kernel/reject/follow.ts | 2 | ||||
| -rw-r--r-- | src/remote/activitypub/kernel/undo/follow.ts | 2 |
3 files changed, 3 insertions, 3 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; diff --git a/src/remote/activitypub/kernel/undo/follow.ts b/src/remote/activitypub/kernel/undo/follow.ts index 7377984616..f112ee8bfb 100644 --- a/src/remote/activitypub/kernel/undo/follow.ts +++ b/src/remote/activitypub/kernel/undo/follow.ts @@ -31,7 +31,7 @@ export default async (actor: IRemoteUser, activity: IFollow): Promise<void> => { }); if (req) { - await cancelRequest(actor, followee); + await cancelRequest(followee, actor); } else { await unfollow(actor, followee); } |