forked from FoundKeyGang/FoundKey
[Server] Resolve #4062
This commit is contained in:
parent
33eb91c0f0
commit
734277d9f6
2 changed files with 14 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
ChangeLog
|
ChangeLog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
unreleased
|
||||||
|
----------
|
||||||
|
* public の Renote/Reply/Quote先 が public以外 だったら、public => homeに
|
||||||
|
|
||||||
10.80.0
|
10.80.0
|
||||||
----------
|
----------
|
||||||
* サイレンス機能の追加
|
* サイレンス機能の追加
|
||||||
|
|
|
@ -140,6 +140,16 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
||||||
return rej('Renote target is not public or home');
|
return rej('Renote target is not public or home');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Renote対象がpublicではないならhomeにする
|
||||||
|
if (data.renote && data.renote.visibility != 'public' && data.visibility == 'public') {
|
||||||
|
data.visibility = 'home';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 返信対象がpublicではないならhomeにする
|
||||||
|
if (data.reply && data.reply.visibility != 'public' && data.visibility == 'public') {
|
||||||
|
data.visibility = 'home';
|
||||||
|
}
|
||||||
|
|
||||||
// ローカルのみをRenoteしたらローカルのみにする
|
// ローカルのみをRenoteしたらローカルのみにする
|
||||||
if (data.renote && data.renote.localOnly) {
|
if (data.renote && data.renote.localOnly) {
|
||||||
data.localOnly = true;
|
data.localOnly = true;
|
||||||
|
|
Loading…
Reference in a new issue