diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-04-11 03:09:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-04-11 03:09:12 +0900 |
| commit | 2a7e3b9c514e9cbb3e15551fba0d01280ebdc2e7 (patch) | |
| tree | 2af6308132f5fb852ebe1ff0e20df89463b15a7a /src/queue/processors/inbox.ts | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-2a7e3b9c514e9cbb3e15551fba0d01280ebdc2e7.tar.gz sharkey-2a7e3b9c514e9cbb3e15551fba0d01280ebdc2e7.tar.bz2 sharkey-2a7e3b9c514e9cbb3e15551fba0d01280ebdc2e7.zip | |
Fix: AP actor Service のサポートが不完全 (v11) (#4662)
Diffstat (limited to 'src/queue/processors/inbox.ts')
| -rw-r--r-- | src/queue/processors/inbox.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/queue/processors/inbox.ts b/src/queue/processors/inbox.ts index 481bcbb1c4..35b0ce5386 100644 --- a/src/queue/processors/inbox.ts +++ b/src/queue/processors/inbox.ts @@ -13,6 +13,7 @@ import { instanceChart } from '../../services/chart'; import { UserPublickey } from '../../models/entities/user-publickey'; import fetchMeta from '../../misc/fetch-meta'; import { toPuny } from '../../misc/convert-host'; +import { validActor } from '../../remote/activitypub/type'; const logger = new Logger('inbox'); @@ -93,7 +94,7 @@ export default async (job: Bull.Job): Promise<void> => { // Update Person activityの場合は、ここで署名検証/更新処理まで実施して終了 if (activity.type === 'Update') { - if (activity.object && activity.object.type === 'Person') { + if (activity.object && validActor.includes(activity.object.type)) { if (user == null) { logger.warn('Update activity received, but user not registed.'); } else if (!httpSignature.verifySignature(signature, key.keyPem)) { |