use http-signature module that supports hs2019 (#8635)
This commit is contained in:
parent
b3ad04fcb0
commit
9c80403072
7 changed files with 19 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
|||
declare module 'http-signature' {
|
||||
declare module '@peertube/http-signature' {
|
||||
import { IncomingMessage, ClientRequest } from 'node:http';
|
||||
|
||||
interface ISignature {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import httpSignature from 'http-signature';
|
||||
import httpSignature from '@peertube/http-signature';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
import config from '@/config/index.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { URL } from 'node:url';
|
||||
import Bull from 'bull';
|
||||
import httpSignature from 'http-signature';
|
||||
import httpSignature from '@peertube/http-signature';
|
||||
import perform from '@/remote/activitypub/perform.js';
|
||||
import Logger from '@/services/logger.js';
|
||||
import { registerOrFetchInstanceDoc } from '@/services/register-or-fetch-instance-doc.js';
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Note } from '@/models/entities/note';
|
|||
import { User } from '@/models/entities/user.js';
|
||||
import { Webhook } from '@/models/entities/webhook';
|
||||
import { IActivity } from '@/remote/activitypub/type.js';
|
||||
import httpSignature from 'http-signature';
|
||||
import httpSignature from '@peertube/http-signature';
|
||||
|
||||
export type DeliverJobData = {
|
||||
/** Actor */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Router from '@koa/router';
|
||||
import json from 'koa-json-body';
|
||||
import httpSignature from 'http-signature';
|
||||
import httpSignature from '@peertube/http-signature';
|
||||
|
||||
import { renderActivity } from '@/remote/activitypub/renderer/index.js';
|
||||
import renderNote from '@/remote/activitypub/renderer/note.js';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue