mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-06 02:26:04 +02:00
use node 16
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createSystemUser } from './create-system-user.js';
|
||||
import { IsNull } from 'typeorm';
|
||||
import { renderFollowRelay } from '@/remote/activitypub/renderer/follow-relay.js';
|
||||
import { renderActivity, attachLdSignature } from '@/remote/activitypub/renderer/index.js';
|
||||
import renderUndo from '@/remote/activitypub/renderer/undo.js';
|
||||
@@ -8,7 +8,7 @@ import { Users, Relays } from '@/models/index.js';
|
||||
import { genId } from '@/misc/gen-id.js';
|
||||
import { Cache } from '@/misc/cache.js';
|
||||
import { Relay } from '@/models/entities/relay.js';
|
||||
import { IsNull } from 'typeorm';
|
||||
import { createSystemUser } from './create-system-user.js';
|
||||
|
||||
const ACTOR_USERNAME = 'relay.actor' as const;
|
||||
|
||||
@@ -88,7 +88,9 @@ export async function deliverToRelays(user: { id: User['id']; host: null; }, act
|
||||
}));
|
||||
if (relays.length === 0) return;
|
||||
|
||||
const copy = structuredClone(activity);
|
||||
// TODO
|
||||
//const copy = structuredClone(activity);
|
||||
const copy = JSON.parse(JSON.stringify(activity));
|
||||
if (!copy.to) copy.to = ['https://www.w3.org/ns/activitystreams#Public'];
|
||||
|
||||
const signed = await attachLdSignature(copy, user);
|
||||
|
||||
Reference in New Issue
Block a user