Renote visibility (#3290)

This commit is contained in:
MeiMei
2018-11-17 03:25:48 +09:00
committed by syuilo
parent db657c2a62
commit 0bf54b3ff6
5 changed files with 52 additions and 16 deletions

View File

@@ -2,6 +2,8 @@ import config from '../../../config';
import * as uuid from 'uuid';
export default (x: any) => {
if (x == null) return null;
if (x !== null && typeof x === 'object' && x.id == null) {
x.id = `${config.url}/${uuid.v4()}`;
}