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

Always show object content, regardless of object type, if mediaType is supported #24079

Open
Oblomov opened this issue Mar 12, 2023 · 0 comments
Labels
suggestion Feature suggestion

Comments

@Oblomov
Copy link

Oblomov commented Mar 12, 2023

Pitch

Currently, Mastodon separates ActivityPub objects between “supported” and “converted”, based on object type. Converted objects will only display a title, spoiler text and URL. This is the case even if the object has a content that could be handled no differently than the Note type.

A better approach would be to map object properties to the internal model whenever that makes sense, regardless of the object type. This would mean mapping the title & summary to the spoiler text, the (sanitized) content to the text (if supported, i.e. if its mediaType is the default text/html or other supported format), etc.

Motivation

The choice to reduce non-supported types to “title + link” even when content or other compatible attributes are present has no apparent motivation, and leads to issues ranging from the one described in #8892 or #19357 to poor user experience both for Mastodon users and for users of other federate platforms that wish to be more accessible to Mastodon users.

Classic example is the ActivityPub plugin for WordPress recommending to use Note instead of Article as AP object type, even though Article would be the more sensible choice, because otherwise Mastodon followers won't be able to see the post content. Arguably, PixelFed's choice to use Note as object type is due to the same reasons.

I know that at least for Articles the official rationale behind the choice is that Mastodon is intended for short messages only, but the fact that Mastodon accepts the exact same content when it's presented as Note instead of an Article (or anything else), the rationale seems ultimately pretty weak, and the practical effect is that other platforms end up abusing the Note type to improve the Mastodon users' experience and avoid being relegated to “title and link” on the dominant platform.

So, if there isn't a stronger rationale than “Mastodon is supposed to be for short messages only” (that ship has long sailed), I think it would be better for the entire ecosystem if object attributes were mapped to equivalent status attributes whenever possible, independently from the object type.

@Oblomov Oblomov added the suggestion Feature suggestion label Mar 12, 2023
angusmcleod added a commit to angusmcleod/discourse-activity-pub that referenced this issue Jul 18, 2023
An Article is for when you don't want to restrict the length of the content being federated (i.e. you want to federate entire posts). Note that Mastodon currently converts the content of Article types into a link, however platforms like Lemmy will show the full content. See further mastodon/mastodon#24079
angusmcleod added a commit to angusmcleod/discourse-activity-pub that referenced this issue Jul 25, 2023
An Article is for when you don't want to restrict the length of the content being federated (i.e. you want to federate entire posts). Note that Mastodon currently converts the content of Article types into a link, however platforms like Lemmy will show the full content. See further mastodon/mastodon#24079
angusmcleod added a commit to angusmcleod/discourse-activity-pub that referenced this issue Jul 26, 2023
An Article is for when you don't want to restrict the length of the content being federated (i.e. you want to federate entire posts). Note that Mastodon currently converts the content of Article types into a link, however platforms like Lemmy will show the full content. See further mastodon/mastodon#24079
angusmcleod added a commit to angusmcleod/discourse-activity-pub that referenced this issue Jul 29, 2023
An Article is for when you don't want to restrict the length of the content being federated (i.e. you want to federate entire posts). Note that Mastodon currently converts the content of Article types into a link, however platforms like Lemmy will show the full content. See further mastodon/mastodon#24079
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant