Unify object representation.
[akkoma] / lib / pleroma / activity.ex
index f43b32b565a502c8338b2d9a655577fc906b1a2b..a8154859a7f81429eac2b293c2a32cd44f8a34f9 100644 (file)
@@ -6,7 +6,9 @@ defmodule Pleroma.Activity do
   schema "activities" do
     field :data, :map
     field :local, :boolean, default: true
-    has_many :notifications, Notification
+    field :actor, :string
+    field :recipients, {:array, :string}
+    has_many :notifications, Notification, on_delete: :delete_all
 
     timestamps()
   end