switches username and preferred_username

This commit is contained in:
Christian Beutel
2025-06-24 17:55:59 +02:00
parent cb4f4f8125
commit 8bf8642703
39 changed files with 175 additions and 70 deletions

View File

@@ -18,9 +18,9 @@ export function handleFromRecordWithIRI(record: any) {
}
if (!record.iri) {
return `@${record.expand.author.username}`
return `@${record.expand.author.preferred_username}`
}
const url = new URL(record.iri ?? "")
return `@${record.expand.author.username}@${url.hostname}`
return `@${record.expand.author.preferred_username}@${url.hostname}`
}