From 805bc4b25433cdc3eda068ec2c7be7260381dcef 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 422e355b5f..cf843fad07 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 81e7c05c73..85f43eb91d 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');