akkoma/lib/pleroma/web/activity_pub/activity_pub.ex

9 lines
182 B
Elixir
Raw Normal View History

2017-03-21 08:21:52 +00:00
defmodule Pleroma.Web.ActivityPub.ActivityPub do
alias Pleroma.Repo
alias Pleroma.Activity
def insert(map) when is_map(map) do
Repo.insert(%Activity{data: map})
end
end