fix: follow-me generate wrong link for other server
This commit is contained in:
parent
c0c5cb92cd
commit
8a2f3b3e36
1 changed files with 7 additions and 3 deletions
|
@ -265,14 +265,18 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
icon: "ph-qr-code ph-bold ph-lg",
|
||||
text: i18n.ts.getQrCode,
|
||||
action: () => {
|
||||
os.displayQrCode(`https://${host}/follow-me?acct=${user.username}`);
|
||||
os.displayQrCode(
|
||||
`https://${host}/follow-me?acct=${acct.toString(user)}`,
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: `${icon("ph-hand-waving")}`,
|
||||
text: i18n.ts.copyRemoteFollowUrl,
|
||||
action: () => {
|
||||
copyToClipboard(`https://${host}/follow-me?acct=${user.username}`);
|
||||
copyToClipboard(
|
||||
`https://${host}/follow-me?acct=${acct.toString(user)}`,
|
||||
);
|
||||
os.success();
|
||||
},
|
||||
},
|
||||
|
@ -321,7 +325,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
icon: `${icon("ph-hand-waving")}`,
|
||||
text: i18n.ts.remoteFollow,
|
||||
action: () => {
|
||||
router.push(`/follow-me?acct=${user.username}`);
|
||||
router.push(`/follow-me?acct=${acct.toString(user)}`);
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
|
|
Loading…
Reference in a new issue