From f33b5894012bc51c59270ce583b58664873a6960 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Apr 2018 02:12:17 +0900 Subject: [PATCH] Refactor --- src/queue/processors/http/deliver.ts | 2 +- src/remote/{ => activitypub}/request.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/remote/{ => activitypub}/request.ts (91%) diff --git a/src/queue/processors/http/deliver.ts b/src/queue/processors/http/deliver.ts index 422e355b5..cf843fad0 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -1,6 +1,6 @@ import * as kue from 'kue'; -import request from '../../../remote/request'; +import request from '../../../remote/activitypub/request'; export default async (job: kue.Job, done): Promise => { try { diff --git a/src/remote/request.ts b/src/remote/activitypub/request.ts similarity index 91% rename from src/remote/request.ts rename to src/remote/activitypub/request.ts index 81e7c05c7..85f43eb91 100644 --- a/src/remote/request.ts +++ b/src/remote/activitypub/request.ts @@ -3,8 +3,8 @@ import { sign } from 'http-signature'; import { URL } from 'url'; import * as debug from 'debug'; -import config from '../config'; -import { ILocalUser } from '../models/user'; +import config from '../../config'; +import { ILocalUser } from '../../models/user'; const log = debug('misskey:activitypub:deliver');