This commit is contained in:
syuilo
2018-06-18 09:54:53 +09:00
parent a766faeae9
commit 80e5645a84
150 changed files with 305 additions and 2334 deletions

View File

@ -1,5 +1,5 @@
import { request } from 'https';
import { sign } from 'http-signature';
const { sign } = require('http-signature');
import { URL } from 'url';
import * as debug from 'debug';
@ -8,7 +8,7 @@ import { ILocalUser } from '../../models/user';
const log = debug('misskey:activitypub:deliver');
export default (user: ILocalUser, url: string, object) => new Promise((resolve, reject) => {
export default (user: ILocalUser, url: string, object: any) => new Promise((resolve, reject) => {
log(`--> ${url}`);
const { protocol, hostname, port, pathname, search } = new URL(url);