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",
|
icon: "ph-qr-code ph-bold ph-lg",
|
||||||
text: i18n.ts.getQrCode,
|
text: i18n.ts.getQrCode,
|
||||||
action: () => {
|
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")}`,
|
icon: `${icon("ph-hand-waving")}`,
|
||||||
text: i18n.ts.copyRemoteFollowUrl,
|
text: i18n.ts.copyRemoteFollowUrl,
|
||||||
action: () => {
|
action: () => {
|
||||||
copyToClipboard(`https://${host}/follow-me?acct=${user.username}`);
|
copyToClipboard(
|
||||||
|
`https://${host}/follow-me?acct=${acct.toString(user)}`,
|
||||||
|
);
|
||||||
os.success();
|
os.success();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -321,7 +325,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
||||||
icon: `${icon("ph-hand-waving")}`,
|
icon: `${icon("ph-hand-waving")}`,
|
||||||
text: i18n.ts.remoteFollow,
|
text: i18n.ts.remoteFollow,
|
||||||
action: () => {
|
action: () => {
|
||||||
router.push(`/follow-me?acct=${user.username}`);
|
router.push(`/follow-me?acct=${acct.toString(user)}`);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
Loading…
Reference in a new issue