mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-19 22:55:29 +02:00
Refactor (#7394)
* wip * wip * wip * wip * wip * Update define.ts * Update update.ts * Update user.ts * wip * wip * Update request.ts * URL * wip * wip * wip * wip * Update invite.ts * Update create.ts
This commit is contained in:
@@ -3,7 +3,7 @@ import { renderFollowRelay } from '../remote/activitypub/renderer/follow-relay';
|
||||
import { renderActivity, attachLdSignature } from '../remote/activitypub/renderer';
|
||||
import renderUndo from '../remote/activitypub/renderer/undo';
|
||||
import { deliver } from '../queue';
|
||||
import { ILocalUser } from '../models/entities/user';
|
||||
import { ILocalUser, User } from '../models/entities/user';
|
||||
import { Users, Relays } from '../models';
|
||||
import { genId } from '@/misc/gen-id';
|
||||
|
||||
@@ -75,7 +75,7 @@ export async function relayRejected(id: string) {
|
||||
return JSON.stringify(result);
|
||||
}
|
||||
|
||||
export async function deliverToRelays(user: ILocalUser, activity: any) {
|
||||
export async function deliverToRelays(user: { id: User['id']; host: null; }, activity: any) {
|
||||
if (activity == null) return;
|
||||
|
||||
const relays = await Relays.find({
|
||||
|
||||
Reference in New Issue
Block a user