mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 01:18:25 +01:00
test: 後で戻す
This commit is contained in:
parent
dabe5bf7e9
commit
da88e3a3b1
1 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
import * as crypto from 'node:crypto';
|
import * as crypto from 'node:crypto';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import jsonld from 'jsonld';
|
|
||||||
import fetch from 'node-fetch';
|
import fetch from 'node-fetch';
|
||||||
import { HttpRequestService } from '@/core/HttpRequestService.js';
|
import { HttpRequestService } from '@/core/HttpRequestService.js';
|
||||||
import { CONTEXTS } from './misc/contexts.js';
|
import { CONTEXTS } from './misc/contexts.js';
|
||||||
|
@ -93,9 +92,7 @@ class LdSignature {
|
||||||
|
|
||||||
public async normalize(data: any) {
|
public async normalize(data: any) {
|
||||||
const customLoader = this.getLoader();
|
const customLoader = this.getLoader();
|
||||||
return await jsonld.normalize(data, {
|
return 42;
|
||||||
documentLoader: customLoader,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private getLoader() {
|
private getLoader() {
|
||||||
|
|
Loading…
Reference in a new issue