akkoma/lib/pleroma/web/activity_pub/activity_pub.ex
2017-03-21 09:21:52 +01:00

8 lines
182 B
Elixir

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