Add recipients field to activities.

Also do some very basic checks for AP message insertion.
This commit is contained in:
Lain Iwakura 2017-12-12 18:07:14 +01:00
commit 4a13b84887
6 changed files with 56 additions and 3 deletions

View file

@ -7,6 +7,7 @@ defmodule Pleroma.Activity do
field :data, :map
field :local, :boolean, default: true
field :actor, :string
field :recipients, {:array, :string}
has_many :notifications, Notification, on_delete: :delete_all
timestamps()