wip
This commit is contained in:
parent
f5c55d46b7
commit
06347cd71e
4 changed files with 22 additions and 8 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { IObject } from "./type";
|
||||
import * as request from 'request-promise-native';
|
||||
import * as debug from 'debug';
|
||||
import { IObject } from './type';
|
||||
|
||||
const request = require('request-promise-native');
|
||||
const log = debug('misskey:activitypub:resolver');
|
||||
|
||||
export default class Resolver {
|
||||
private history: Set<string>;
|
||||
|
|
@ -57,6 +59,8 @@ export default class Resolver {
|
|||
throw new Error('invalid response');
|
||||
}
|
||||
|
||||
log(`resolved: ${JSON.stringify(object)}`);
|
||||
|
||||
return object;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue