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:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user