Bonfire.Social.Graph.Import (Bonfire v1.0.0-social-rc.2.15)
View SourceSummary
Functions
Import follows, ghosts, silences, or blocks from a CSV file.
Import user's outbox from parsed JSON data.
Import user's outbox (posts and activities) from a JSON file.
Perform the queued job based on the operation and scope.
Perform an import operation for the scope.
Functions
Import follows, ghosts, silences, or blocks from a CSV file.
Examples
iex> import_from_csv_file(:following, scope, "path/to/file.csv")
Import user's outbox from parsed JSON data.
Import user's outbox (posts and activities) from a JSON file.
Examples
iex> import_from_json_file("user_id", "path/to/outbox.json")
%{imported: 5, boosted: 3, errors: 1}
Perform the queued job based on the operation and scope.
Examples
iex> perform(%{args: %{"op" => "follows_import", "user_id" => "user1", "identifier" => "id1"}})
:ok
iex> perform(%{args: %{"op" => "blocks_import", "user_id" => "instance_wide", "identifier" => "id1"}})
:ok
Perform an import operation for the scope.
Examples
iex> perform("follows_import", scope, "identifier")