View Source Bonfire.Tag.Tags (bonfire v0.3.5-classic-beta.7)

Link to this section Summary

Link to this section Functions

Link to this function

indexing_object_format(object)

View Source
Link to this function

indexing_object_format_name(object)

View Source
Link to this function

list_trending(in_last_x_days \\ 30, limit \\ 10)

View Source
Link to this function

many(filters \\ [], opts \\ [])

View Source

Retrieves a list of tags by arbitrary filters. Used by:

  • Various parts of the codebase that need to query for tags (inc. tests)
Link to this function

maybe_find_tag(current_user, id_or_username_or_url, types \\ nil)

View Source

Try to find one (best-match) tag

Link to this function

maybe_find_tags(current_user, id_or_username_or_url, types \\ nil)

View Source

Search / autocomplete for tags by name

Link to this function

maybe_lookup_tag(id_or_username_or_url, prefix \\ "@")

View Source

Lookup a single for a tag by its name/username

Link to this function

maybe_tag(user, thing, tags \\ nil, boost_category_mentions? \\ true)

View Source

Maybe tag something

Link to this function

maybe_taxonomy_tag(user, id)

View Source
Link to this function

one(filters, opts \\ [])

View Source

Retrieves a single tag by arbitrary filters. Used by:

  • GraphQL Item queries
  • ActivityPub integration
  • Various parts of the codebase that need to query for tags (inc. tests)
Link to this function

tag_something(user, thing, tags, boost_category_mentions? \\ true)

View Source

tag existing thing with one or multiple Tags, Pointers, or anything that can be made into a tag