diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-05-09 08:21:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-09 08:21:42 +0900 |
| commit | 070f1f3c6ee3188e1b16236366877c1c243601c1 (patch) | |
| tree | f77fa43be8524698bc9e46246748a3163dbd4a7a /src/queue/index.ts | |
| parent | WebAuthnでログインできないのを修正 (#6327) (diff) | |
| download | misskey-070f1f3c6ee3188e1b16236366877c1c243601c1.tar.gz misskey-070f1f3c6ee3188e1b16236366877c1c243601c1.tar.bz2 misskey-070f1f3c6ee3188e1b16236366877c1c243601c1.zip | |
APリファクタとLD-Signatureの検証に対応 (#6300)
* DbResolver
* inbox types
* 認証順を変更
* User/Keyあたりをまとめる
* LD-Signatue
* Validate contexts url
* LD-Signature DocumentLoaderにProxyとTimeout
Diffstat (limited to 'src/queue/index.ts')
| -rw-r--r-- | src/queue/index.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts index 76e26d8e46..163c57d691 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -12,6 +12,7 @@ import procesObjectStorage from './processors/object-storage'; import { queueLogger } from './logger'; import { DriveFile } from '../models/entities/drive-file'; import { getJobInfo } from './get-job-info'; +import { IActivity } from '../remote/activitypub/type'; function initializeQueue(name: string, limitPerSec = -1) { return new Queue(name, { @@ -29,6 +30,12 @@ function initializeQueue(name: string, limitPerSec = -1) { }); } +export type InboxJobData = { + activity: IActivity, + /** HTTP-Signature */ + signature: httpSignature.IParsedSignature +}; + function renderError(e: Error): any { return { stack: e?.stack, |