Ensure ActivityPub claim displays are of for @user@domain.tld

Fixes #30
This commit is contained in:
Preston Maness 2023-06-13 21:19:39 -05:00 committed by Yarmo Mackenbach
parent bfe5a6f486
commit f7c90edd7d

View file

@ -68,7 +68,7 @@ const processURI = (uri) => {
const functions = {
postprocess: (claimData, proofData) => {
claimData.profile.display = `${proofData.result.preferredUsername}@${new URL(proofData.result.url).hostname}`
claimData.profile.display = `@${proofData.result.preferredUsername}@${new URL(proofData.result.url).hostname}`
return { claimData, proofData }
}
}