Change: #246 公開範囲「ローカル公開」無効と同時に、検索許可「ローカルとフォロワー」も無効にする (#368)

This commit is contained in:
KMY(雪あすか) 2023-12-22 10:10:57 +09:00 committed by GitHub
parent 789afccf9b
commit be77654f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 7 deletions

View file

@ -153,7 +153,11 @@ function clearAll(state) {
map.set('limited_scope', null);
map.set('id', null);
map.set('in_reply_to', null);
map.set('searchability', state.get('default_searchability'));
if (state.get('default_searchability') === 'public_unlisted' && !enableLocalPrivacy) {
map.set('searchability', 'public');
} else {
map.set('searchability', state.get('default_searchability'));
}
map.set('sensitive', state.get('default_sensitive'));
map.set('language', state.get('default_language'));
map.update('media_attachments', list => list.clear());