From a62a0d8aacc4161cf69bf8d989ff6e1e69fe8518 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Tue, 24 Feb 2026 13:56:21 +0100 Subject: [PATCH] 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. --- lib/federation-setup.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/federation-setup.js b/lib/federation-setup.js index 608ca5f..8f7917e 100644 --- a/lib/federation-setup.js +++ b/lib/federation-setup.js @@ -731,7 +731,7 @@ export async function buildPersonActor( const fediverseField = actorUrl ? new PropertyValue({ name: "Fediverse", - value: `@${identifier}@${new URL(actorUrl).hostname}`, + value: `${actorUrl}`, }) : null; diff --git a/package.json b/package.json index 9c0d3e7..9ec1014 100644 --- a/package.json +++ b/package.json @@ -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",