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) {
|
if (data.renote) {
|
||||||
switch (data.renote.visibility) {
|
switch (data.renote.visibility) {
|
||||||
case 'public':
|
case 'public':
|
||||||
// public noteは無条件にrenote可能
|
|
||||||
break;
|
|
||||||
case 'home':
|
case 'home':
|
||||||
// home noteはhome以下にrenote可能
|
// notes with public audience can have any visibility
|
||||||
if (data.visibility === 'public') {
|
|
||||||
data.visibility = 'home';
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'followers':
|
case 'followers':
|
||||||
// 他人のfollowers noteはreject
|
// 他人のfollowers noteはreject
|
||||||
|
|
Loading…
Reference in New Issue