chore(frontend): renote of note in sensitive channel is now home renote by default. (#11476)
* chore(frontend): renote of note in sensitive channel is now home renote by default. * docs: センシティブチャンネルのNoteのReNoteはデフォルトでHome TLに流れるようになりました --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		
							parent
							
								
									dc1a91a5b2
								
							
						
					
					
						commit
						4c3935bf80
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,6 +27,7 @@
 | 
				
			||||||
- プロフィールにその人が作ったPlayの一覧出せるように
 | 
					- プロフィールにその人が作ったPlayの一覧出せるように
 | 
				
			||||||
- メニューのスイッチの動作を改善
 | 
					- メニューのスイッチの動作を改善
 | 
				
			||||||
- 絵文字ピッカーの検索の表示件数を100件に増加
 | 
					- 絵文字ピッカーの検索の表示件数を100件に増加
 | 
				
			||||||
 | 
					- センシティブチャンネルのNoteのReNoteはデフォルトでHome TLに流れるようになりました
 | 
				
			||||||
- 投稿フォームのプレビューの表示状態を記憶するように
 | 
					- 投稿フォームのプレビューの表示状態を記憶するように
 | 
				
			||||||
- ノート詳細ページ読み込み時のパフォーマンスを改善
 | 
					- ノート詳細ページ読み込み時のパフォーマンスを改善
 | 
				
			||||||
- AiScriptからMisskeyサーバーAPIを呼び出す際の制限を撤廃
 | 
					- AiScriptからMisskeyサーバーAPIを呼び出す際の制限を撤廃
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -319,9 +319,15 @@ function renote(viaKeyboard = false) {
 | 
				
			||||||
			const configuredVisibility = defaultStore.state.rememberNoteVisibility ? defaultStore.state.visibility : defaultStore.state.defaultNoteVisibility;
 | 
								const configuredVisibility = defaultStore.state.rememberNoteVisibility ? defaultStore.state.visibility : defaultStore.state.defaultNoteVisibility;
 | 
				
			||||||
			const localOnly = defaultStore.state.rememberNoteVisibility ? defaultStore.state.localOnly : defaultStore.state.defaultNoteLocalOnly;
 | 
								const localOnly = defaultStore.state.rememberNoteVisibility ? defaultStore.state.localOnly : defaultStore.state.defaultNoteLocalOnly;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								let visibility = appearNote.visibility;
 | 
				
			||||||
 | 
								visibility = smallerVisibility(visibility, configuredVisibility);
 | 
				
			||||||
 | 
								if (appearNote.channel?.isSensitive) {
 | 
				
			||||||
 | 
									visibility = smallerVisibility(visibility, 'home');
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			os.api('notes/create', {
 | 
								os.api('notes/create', {
 | 
				
			||||||
				localOnly,
 | 
									localOnly,
 | 
				
			||||||
				visibility: smallerVisibility(appearNote.visibility, configuredVisibility),
 | 
									visibility,
 | 
				
			||||||
				renoteId: appearNote.id,
 | 
									renoteId: appearNote.id,
 | 
				
			||||||
			}).then(() => {
 | 
								}).then(() => {
 | 
				
			||||||
				os.toast(i18n.ts.renoted);
 | 
									os.toast(i18n.ts.renoted);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue