summaryrefslogtreecommitdiff
path: root/src/remote/activitypub
diff options
context:
space:
mode:
authorSatsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>2019-08-18 12:42:58 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-18 12:42:58 +0900
commit59493a0cd99f269c9896c49b78e8b3913527c9da (patch)
treeb40f8cbeaa206766fdf6f5d52e15e9812ae46e8b /src/remote/activitypub
parentリモートユーザー向けのNoteUnreadsレコードは作成しないよ... (diff)
downloadmisskey-59493a0cd99f269c9896c49b78e8b3913527c9da.tar.gz
misskey-59493a0cd99f269c9896c49b78e8b3913527c9da.tar.bz2
misskey-59493a0cd99f269c9896c49b78e8b3913527c9da.zip
uuid() と lint (#5288)
* Import only v4 uuid, uuid() without version is deprecated * Add Missing semicolon
Diffstat (limited to 'src/remote/activitypub')
-rw-r--r--src/remote/activitypub/renderer/index.ts4
1 files changed, 2 insertions, 2 deletions
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({