fix: copy visibility for renotes
Some checks failed
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/tag/lint-client Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/lint-backend Pipeline was successful

The backend does not allow follower only and direct notes to be renoted
but these are prohibited for the renote button anyway.
This commit is contained in:
Johann150 2022-08-05 08:36:59 +02:00
parent 09a7eabda1
commit cbefddc071
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -63,7 +63,8 @@ export default defineComponent({
icon: 'fas fa-retweet',
action: () => {
os.api('notes/create', {
renoteId: props.note.id
renoteId: props.note.id,
visibility: props.note.visibility,
});
}
}, {