Bonfire.API.MastoCompat.Mappers.Tag (Bonfire v1.0.1-social-alpha.28)
View SourceMaps Bonfire Hashtag objects to Mastodon Tag format.
Per the Mastodon API spec, a Tag represents a hashtag used within a status.
Required Fields
name(string) - The hashtag name (without #)url(string, uri) - URL to the hashtag timeline
Optional Fields
history(array) - Usage statistics (empty array - not implemented)following(boolean) - Whether the authenticated user is following this hashtag
Summary
Functions
Transform a Bonfire Hashtag to a Mastodon Tag.