merge: upstream

This commit is contained in:
Mar0xy 2023-10-03 15:20:49 +02:00
commit 38e35e1472
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
185 changed files with 4442 additions and 2501 deletions

View file

@ -182,6 +182,7 @@ export function getNoteMenu(props: {
}
});
}
function edit(): void {
os.post({
initialNote: appearNote,
@ -190,7 +191,7 @@ export function getNoteMenu(props: {
channel: appearNote.channel,
editId: appearNote.id,
});
}
}
function toggleFavorite(favorite: boolean): void {
claimAchievement('noteFavorited1');
@ -307,7 +308,7 @@ export function getNoteMenu(props: {
text: i18n.ts.share,
action: share,
},
instance.translatorAvailable ? {
$i && $i.policies.canUseTranslator && instance.translatorAvailable ? {
icon: 'ph-translate ph-bold ph-lg',
text: i18n.ts.translate,
action: translate,