mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[client] Fix migration page when migrating from/to the same account twice, resolves #514
This commit is contained in:
parent
4b20ab6ad4
commit
63fa244ea8
@ -60,6 +60,7 @@ import { i18n } from "@/i18n";
|
||||
import { definePageMetadata } from "@/scripts/page-metadata";
|
||||
import { $i } from "@/account";
|
||||
import { toString } from "iceshrimp-js/built/acct";
|
||||
import { unique } from "@/scripts/array.js";
|
||||
|
||||
let moveToAccount = $ref("");
|
||||
let accountAlias = $ref([""]);
|
||||
@ -68,7 +69,7 @@ await init();
|
||||
|
||||
async function init() {
|
||||
if ($i?.alsoKnownAs && $i.alsoKnownAs.length > 0) {
|
||||
const aka = await os.api("users/show", { userIds: $i.alsoKnownAs });
|
||||
const aka = await os.api("users/show", { userIds: unique($i.alsoKnownAs) });
|
||||
accountAlias =
|
||||
aka && aka.length > 0
|
||||
? aka.map((user) => `@${toString(user)}`)
|
||||
|
Loading…
Reference in New Issue
Block a user