diff options
| author | Sam Smucny <smucny.sam@gmail.com> | 2022-12-26 22:14:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-27 12:14:42 +0900 |
| commit | 5ebcdb4f317a3705db606d74035b613a7f41a2b8 (patch) | |
| tree | 483d528758ccd51a2d81997394cde37806f35d0f /packages/client/src/scripts | |
| parent | :art: (diff) | |
| download | sharkey-5ebcdb4f317a3705db606d74035b613a7f41a2b8.tar.gz sharkey-5ebcdb4f317a3705db606d74035b613a7f41a2b8.tar.bz2 sharkey-5ebcdb4f317a3705db606d74035b613a7f41a2b8.zip | |
enhance(client): Add link to copy RSS feed in user profile menu (#9419)
* add link to RSS feed
* update changelog and locale file
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/client/src/scripts')
| -rw-r--r-- | packages/client/src/scripts/get-user-menu.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts index 23f0e11f5b..2faacffdfc 100644 --- a/packages/client/src/scripts/get-user-menu.ts +++ b/packages/client/src/scripts/get-user-menu.ts @@ -159,6 +159,12 @@ export function getUserMenu(user, router: Router = mainRouter) { copyToClipboard(`@${user.username}@${user.host || host}`); }, }, { + icon: 'ti ti-rss', + text: i18n.ts.copyRSS, + action: () => { + copyToClipboard(`${user.host || host}/@${user.username}.atom`); + } + }, { icon: 'ti ti-info-circle', text: i18n.ts.info, action: () => { |