fixed an error showing up when trying to renote a note in the 'home' visibility setting #56
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);
|
throw new ApiError(meta.errors.cannotReRenote);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check that the visibility is not less restrictive
|
// do not allow renoting followers only/specified scope notes
|
||||||
if (noteVisibilities.indexOf(renote.visibility) > noteVisibilities.indexOf(ps.visibility)) {
|
if (noteVisibilities.indexOf(renote.visibility) > noteVisibilities.indexOf('home')) {
|
||||||
throw new ApiError(meta.errors.lessRestrictiveVisibility);
|
throw new ApiError(meta.errors.lessRestrictiveVisibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue