diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-03-14 21:28:02 +0000 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-03-14 21:28:02 +0000 |
| commit | 4184d7d726ce5a4c1a00befdb582d1d40fa7ae91 (patch) | |
| tree | e8d0a604628a62bbb494697472d4d094e6bee6a1 /packages | |
| parent | merge: Make pleaseLoginContext attempt to use stored remote url/uris first be... (diff) | |
| parent | upd: remove old leftover copy link (origin) (diff) | |
| download | sharkey-4184d7d726ce5a4c1a00befdb582d1d40fa7ae91.tar.gz sharkey-4184d7d726ce5a4c1a00befdb582d1d40fa7ae91.tar.bz2 sharkey-4184d7d726ce5a4c1a00befdb582d1d40fa7ae91.zip | |
merge: Remove our addition of copy remote link (!943)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/943
Closes #1005
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/scripts/get-note-menu.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 9112daf49f..463fec6f97 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -159,17 +159,6 @@ export function getCopyNoteLinkMenu(note: Misskey.entities.Note, text: string): }; } -export function getCopyNoteOriginLinkMenu(note: misskey.entities.Note, text: string): MenuItem { - return { - icon: 'ph-link ph-bold ph-lg', - text, - action: (): void => { - copyToClipboard(note.url ?? note.uri); - os.success(); - }, - }; -} - function getNoteEmbedCodeMenu(note: Misskey.entities.Note, text: string): MenuItem | undefined { if (note.url != null || note.uri != null) return undefined; if (['specified', 'followers'].includes(note.visibility)) return undefined; @@ -338,9 +327,6 @@ export function getNoteMenu(props: { }, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)); if (appearNote.url || appearNote.uri) { - menuItems.push( - getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)') - ); menuItems.push({ icon: 'ti ti-link', text: i18n.ts.copyRemoteLink, @@ -506,9 +492,6 @@ export function getNoteMenu(props: { }, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)); if (appearNote.url || appearNote.uri) { - menuItems.push( - getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)') - ); menuItems.push({ icon: 'ti ti-link', text: i18n.ts.copyRemoteLink, |