mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-27 09:30:37 +00:00
9 lines
182 B
Elixir
9 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
|