From 59493a0cd99f269c9896c49b78e8b3913527c9da Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 18 Aug 2019 12:42:58 +0900 Subject: uuid() と lint (#5288) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Import only v4 uuid, uuid() without version is deprecated * Add Missing semicolon --- src/remote/activitypub/renderer/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remote/activitypub') diff --git a/src/remote/activitypub/renderer/index.ts b/src/remote/activitypub/renderer/index.ts index 2fd5d34597..63447b0c43 100644 --- a/src/remote/activitypub/renderer/index.ts +++ b/src/remote/activitypub/renderer/index.ts @@ -1,11 +1,11 @@ import config from '../../../config'; -import * as uuid from 'uuid'; +import { v4 as uuid } from 'uuid'; export const renderActivity = (x: any) => { if (x == null) return null; if (x !== null && typeof x === 'object' && x.id == null) { - x.id = `${config.url}/${uuid.v4()}`; + x.id = `${config.url}/${uuid()}`; } return Object.assign({ -- cgit v1.3.1-freya