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 other ActivityPub object types #939

Open
nileshtrivedi opened this issue Jul 10, 2023 · 3 comments
Open

Support for other ActivityPub object types #939

nileshtrivedi opened this issue Jul 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@nileshtrivedi
Copy link

nileshtrivedi commented Jul 10, 2023

There exist Mastodon-forks which support ActivityPub object types other than Note. Such as Article which is intended for long-form posts.

Example: HomeTown

Mastodon.social does not support these types which has unfortunately led to all other apps in fediverse being forced to shoehorn their content into Note for reach.

I wanted to add this support in Elk client and created this issue a while ago, but then realized that ActivityPub object types will probably need to be supported in masto.js first as Elk depends on it.

@neet neet added the enhancement New feature or request label Jul 10, 2023
@nileshtrivedi
Copy link
Author

Here is an Article that renders fine in a Hometown instance: https://friend.camp/@[email protected]/110634294101963133 :

image

but not in Elk.zone which uses masto.js. Instead, a separate Note has to be posted: https://elk.zone/fosstodon.org/@[email protected]/110634298551276691 :
image

@neet
Copy link
Owner

neet commented Jul 30, 2023

@nileshtrivedi Thank you for your valuable feedback.

Unfortunately, Masto.js is unable to take advantage of some of the features offered by forks such as Hometown, Akkoma, Pleroma, and Fedibird, nor is it easy to extend them.

Masto.js was initially intended to be a Mastodon-specific library. Still, after glimpsing the current state of development of third-party apps and other applications using Masto.js, we have come to believe that we should avoid making it a hindrance to the spread of Mastodon forks

It can be essential criteria that whether or not an existing Mastodon client works for users who try a new ActivityPub implementation. It would be especially problematic when their unique features are not available at all for third-party clients.

Therefore, we would like to provide the ability to extend the functionality of Masto.js with plugins in the future. This will be like day.js or i18next, which anyone can develop their own plugins and use easily.

We do not have a release date in mind at this time, but we hope to include it in v7.0.0 at least. We welcome any feedback on the API design of the plugin feature.

@GerritKuilder
Copy link

I played around yesterday with pleroma and noticed that the api does not pass the content_type, so That would be nice to have.

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

3 participants