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

Tag and associated types: Hashtag, Mention, Emoji #48

Closed
jfietkau opened this issue May 6, 2024 · 3 comments
Closed

Tag and associated types: Hashtag, Mention, Emoji #48

jfietkau opened this issue May 6, 2024 · 3 comments
Assignees
Labels
feature request Requests for new features

Comments

@jfietkau
Copy link

jfietkau commented May 6, 2024

ActivityStreams specifies a Tag type to signify external references associated with an object. This type is used with several subtypes by current ActivityPub social platforms, all of which would be useful to have in Fedify.

  1. Mastodon uses the Hashtag type to declare in-band hashtags. According to Mastodon's documentation, this type was in an ActivityStreams vocabulary draft, but doesn't appear to have made it into the current spec. Adding support for it to Fedify would allow other servers to rewrite hashtag links in text content to lead clients to their home server's hashtag search instead of the origin server's. This is functionality that end users will expect to work.
  2. The Mention type in AS is not a subtype of Tag, but Mastodon nonetheless lists it in the object's tags collection. Fedify already contains support for Mention, although I have not tested it. It would be useful to be able to add Mentions to an object's tags collection, because this enables other servers such as Mastodon to rewrite mention-tagged links to external Actors to point to their local representation instead of to the originating server. This, again, is functionality expected by end users.
  3. Mastodon documents an extension for the Emoji type, a special tag mapping a text shorthand to an Image that clients can display inline. I'm not sure to what extent, if any, Mastodon enforces that the text shorthand must start and end with :, but it is the case for Mastodon servers. Supporting the Emoji type would enable Fedify servers to send activities including custom emoji, which would be appreciated by me and I'm sure also other server implementers.
@jfietkau
Copy link
Author

jfietkau commented May 6, 2024

After posting, I remembered that this draft report exists, which would specify Hashtag and a few other things unrelated to this issue. Might be relevant for #28 as well.

@dahlia dahlia added the feature request Requests for new features label May 6, 2024
@dahlia
Copy link
Owner

dahlia commented May 6, 2024

For Mentions, you can already put them in the tags collection.

dahlia added a commit that referenced this issue May 7, 2024
@dahlia dahlia closed this as completed in 738f84b May 7, 2024
@dahlia dahlia self-assigned this May 7, 2024
@dahlia
Copy link
Owner

dahlia commented May 7, 2024

Now you can use Hashtag and Emoji since Fedify 0.9.0-dev.172+738f84bf.

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

No branches or pull requests

2 participants