Renote visibility (#3290)
This commit is contained in:
parent
db657c2a62
commit
0bf54b3ff6
5 changed files with 52 additions and 16 deletions
|
|
@ -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()}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue