fix: Fediverse field display text for Mastodon verification

Mastodon 4.5's extract_url_from_html requires element['href'] ==
element.text for a field to be verifiable. Using @handle@domain as
display text caused value_for_verification to return nil, making
the field permanently unverifiable.

Change to using the full actor URL as display text so the href and
text content match.
This commit is contained in:
Ricardo
2026-02-24 13:56:21 +01:00
parent 963dcc3014
commit a62a0d8aac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -731,7 +731,7 @@ export async function buildPersonActor(
const fediverseField = actorUrl
? new PropertyValue({
name: "Fediverse",
value: `<a href="${actorUrl}" rel="me">@${identifier}@${new URL(actorUrl).hostname}</a>`,
value: `<a href="${actorUrl}" rel="me">${actorUrl}</a>`,
})
: null;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@rmdes/indiekit-endpoint-activitypub",
"version": "2.0.22",
"version": "2.0.24",
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
"keywords": [
"indiekit",