parent
b3fc4dc00f
commit
00b134ce1e
7 changed files with 154 additions and 3 deletions
|
@ -116,6 +116,11 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
|
|||
if (data.viaMobile == null) data.viaMobile = false;
|
||||
if (data.localOnly == null) data.localOnly = false;
|
||||
|
||||
// サイレンス
|
||||
if (user.isSilenced && data.visibility == 'public') {
|
||||
data.visibility = 'home';
|
||||
}
|
||||
|
||||
if (data.visibleUsers) {
|
||||
data.visibleUsers = erase(null, data.visibleUsers);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue