feat: Add renote home only button

This commit is contained in:
sim1222 2022-02-09 22:47:55 +09:00
parent c57f03b092
commit 75482bb4b3
No known key found for this signature in database
GPG Key ID: 21460619C5FC4DD1
3 changed files with 11 additions and 0 deletions

View File

@ -94,6 +94,7 @@ unfollow: "Unfollow"
followRequestPending: "Pending follow request" followRequestPending: "Pending follow request"
enterEmoji: "Enter an emoji" enterEmoji: "Enter an emoji"
renote: "Renote" renote: "Renote"
renoteHomeOnly: "Renote to home only"
renoteFollowersOnly: "Renote to followers only" renoteFollowersOnly: "Renote to followers only"
unrenote: "Take back renote" unrenote: "Take back renote"
renoted: "Renoted." renoted: "Renoted."

View File

@ -94,6 +94,7 @@ unfollow: "フォロー解除"
followRequestPending: "フォロー許可待ち" followRequestPending: "フォロー許可待ち"
enterEmoji: "絵文字を入力" enterEmoji: "絵文字を入力"
renote: "Renote" renote: "Renote"
renoteHomeOnly: "ホームのみにRenote"
renoteFollowersOnly: "鍵Renote" renoteFollowersOnly: "鍵Renote"
unrenote: "Renote解除" unrenote: "Renote解除"
renoted: "Renoteしたよ。" renoted: "Renoteしたよ。"

View File

@ -66,6 +66,15 @@ export default defineComponent({
renoteId: props.note.id renoteId: props.note.id
}); });
} }
},{
text: i18n.ts.renoteHomeOnly,
icon: 'fas fa-unlock',
action: () => {
os.api('notes/create', {
renoteId: props.note.id,
visibility: 'home'
});
}
},{ },{
text: i18n.ts.renoteFollowersOnly, text: i18n.ts.renoteFollowersOnly,
icon: 'fas fa-unlock', icon: 'fas fa-unlock',