Privateの公開範囲を廃止
This commit is contained in:
parent
545ced7826
commit
a3493c4f07
10 changed files with 18 additions and 30 deletions
|
@ -247,6 +247,11 @@ export default define(meta, (ps, user, app) => new Promise(async (res, rej) => {
|
|||
return rej('text, fileIds, renoteId or poll is required');
|
||||
}
|
||||
|
||||
// 後方互換性のため
|
||||
if (ps.visibility == 'private') {
|
||||
ps.visibility = 'specified';
|
||||
}
|
||||
|
||||
// 投稿を作成
|
||||
create(user, {
|
||||
createdAt: new Date(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue