enhance(backend): Allow renote of public notes with any visibility
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
568021498f
commit
0cf68c7ce4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue