View Source Bonfire.Tag.Tags (bonfire_umbrella v0.9.10-cooperation-beta.62)

Summary

Functions

Link to this function

cast(changeset, attrs, creator, opts)

View Source

For using on changesets (eg in epics)

Link to this function

get_or_create_hashtag(name)

View Source
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_put_tree_parent(changeset, category, creator)

View Source
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

search_hashtag(text, opts \\ [])

View Source
Link to this function

search_hashtag_query(text, opts)

View Source
Link to this function

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

View Source

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