forked from FoundKeyGang/FoundKey
fixed an error showing up when trying to renote a note in the 'home' visibility setting
This commit is contained in:
parent
cbefddc071
commit
959c4258d3
1 changed files with 2 additions and 2 deletions
|
@ -206,8 +206,8 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
throw new ApiError(meta.errors.cannotReRenote);
|
||||
}
|
||||
|
||||
// check that the visibility is not less restrictive
|
||||
if (noteVisibilities.indexOf(renote.visibility) > noteVisibilities.indexOf(ps.visibility)) {
|
||||
// do not allow renoting followers only/specified scope notes
|
||||
if (noteVisibilities.indexOf(renote.visibility) > noteVisibilities.indexOf('home')) {
|
||||
throw new ApiError(meta.errors.lessRestrictiveVisibility);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue