View Source Bonfire.Geolocate.Geolocations (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Link to this function

ap_publish_activity(subject, activity_name, thing)

View Source
Link to this function

ap_receive_activity(creator, activity, object)

View Source
@spec create(any(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}
Link to this function

create(creator, context, attrs)

View Source
@spec create(any(), context :: any(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}

Callback implementation for Bonfire.Federate.ActivityPub.FederationModules.federation_module/0.

Link to this function

indexing_object_format(u)

View Source

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

  • Various parts of the codebase that need to query for geolocations (inc. tests)

Retrieves a single geolocation by arbitrary filters. Used by:

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

populate_coordinates(objects)

View Source
Link to this function

resolve_mappable_address(attrs)

View Source
Link to this function

search(search, opts \\ [])

View Source
@spec soft_delete(Bonfire.Geolocate.Geolocation.t(), any()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}
Link to this function

thing_add_location(user, thing, mappable_address)

View Source
Link to this function

update(user, geolocation, attrs)

View Source
@spec update(any(), Bonfire.Geolocate.Geolocation.t(), attrs :: map()) ::
  {:ok, Bonfire.Geolocate.Geolocation.t()} | {:error, Changeset.t()}