enhance(backend): Allow renote of public notes with any visibility

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
eternal-flame-AD 2025-06-11 03:02:25 -05:00
parent 568021498f
commit 0cf68c7ce4
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -280,13 +280,8 @@ export class NoteCreateService implements OnApplicationShutdown {
if (data.renote) {
switch (data.renote.visibility) {
case 'public':
// public noteは無条件にrenote可能
break;
case 'home':
// home noteはhome以下にrenote可能
if (data.visibility === 'public') {
data.visibility = 'home';
}
// notes with public audience can have any visibility
break;
case 'followers':
// 他人のfollowers noteはreject