Renote visibility (#3290)
This commit is contained in:
@@ -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()}`;
|
||||
}
|
||||
|
Reference in New Issue
Block a user