mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-17 12:35:37 +02:00
リファクタリング syuilo#4587 (#4766)
This commit is contained in:
@@ -35,7 +35,7 @@ export default async (user: ILocalUser, url: string, object: any) => {
|
||||
const addr = await resolveAddr(hostname);
|
||||
if (!addr) return;
|
||||
|
||||
const _ = new Promise((resolve, reject) => {
|
||||
await new Promise((resolve, reject) => {
|
||||
const req = request({
|
||||
protocol,
|
||||
hostname: addr,
|
||||
@@ -82,8 +82,6 @@ export default async (user: ILocalUser, url: string, object: any) => {
|
||||
req.end(data);
|
||||
});
|
||||
|
||||
await _;
|
||||
|
||||
//#region Log
|
||||
publishApLogStream({
|
||||
direction: 'out',
|
||||
|
||||
Reference in New Issue
Block a user