Merge branch 'feature/mastoapi-accounts-external' into 'develop'
[akkoma] / lib / pleroma / activity.ex
index 35612c882017bb1302015d81a4a70cb49dc0ee1e..2d4e9da0c7e9c8b269d24fd2ebace82e8f4442c6 100644 (file)
@@ -6,6 +6,7 @@ defmodule Pleroma.Activity do
   use Ecto.Schema
 
   alias Pleroma.Activity
+  alias Pleroma.ActivityExpiration
   alias Pleroma.Bookmark
   alias Pleroma.Notification
   alias Pleroma.Object
@@ -59,6 +60,8 @@ defmodule Pleroma.Activity do
     # typical case.
     has_one(:object, Object, on_delete: :nothing, foreign_key: :id)
 
+    has_one(:expiration, ActivityExpiration, on_delete: :delete_all)
+
     timestamps()
   end