feat: renote followers only

This commit is contained in:
sim1222 2022-02-07 03:02:41 +09:00
parent 7257336dc5
commit 6fbc22a67b
No known key found for this signature in database
GPG Key ID: 21460619C5FC4DD1
3 changed files with 13 additions and 1 deletions

View File

@ -94,6 +94,7 @@ unfollow: "Unfollow"
followRequestPending: "Pending follow request"
enterEmoji: "Enter an emoji"
renote: "Renote"
renote: "Renote to followers only"
unrenote: "Take back renote"
renoted: "Renoted."
cantRenote: "This post can't be renoted."

View File

@ -94,6 +94,7 @@ unfollow: "フォロー解除"
followRequestPending: "フォロー許可待ち"
enterEmoji: "絵文字を入力"
renote: "Renote"
renoteFollowersOnly: "フォロワーのみにRenote"
unrenote: "Renote解除"
renoted: "Renoteしたよ。"
cantRenote: "この投稿はRenoteできにゃいよ。"

View File

@ -66,7 +66,17 @@ export default defineComponent({
renoteId: props.note.id
});
}
}, {
},{
text: i18n.ts.renoteFollowersOnly,
icon: 'fas fa-unlock',
action: () => {
os.api('notes/create', {
renoteId: props.note.id,
visibility: 'followers'
});
}
}]);
},{
text: i18n.ts.quote,
icon: 'fas fa-quote-right',
action: () => {