Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for attachment lists on actors (Mastodon profile fields) #29

Closed
jfietkau opened this issue Mar 31, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@jfietkau
Copy link

Mastodon uses the attachment property on actors for a list of profile fields, documented here. This property is pretty widely adopted by other ActivityPub-based social platforms.

It would be helpful if Fedify could provide a way to specify these profile fields for its actors. If I understand it correctly, it is not currently possible to add this property manually while using Fedify for federation.

Note: The Mastodon web GUI limits users to a maximum of four profile fields, but to my knowledge the number of fields that federated profiles may have is not limited.

@dahlia dahlia self-assigned this Mar 31, 2024
@dahlia dahlia added the enhancement New feature or request label Mar 31, 2024
@dahlia dahlia closed this as completed in 12a69dc Mar 31, 2024
@dahlia
Copy link
Owner

dahlia commented Mar 31, 2024

You can test PropertyValue now with 0.5.0-dev.96+12a69dc0:

new Person({
  attachments: [
    new PropertyValue({ name: "Pronoun", value: "they/them" }),
    new PropertyValue({ name: "Website", value: '<a href="https://hongminhee.org/">hongminhee.org</a>' }),
  ]
})

Note that Mastodon puts HTML into the value field so that URLs are hyperlinked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants