Delete notifications on activity deletion.

This commit is contained in:
Lain Iwakura 2017-12-08 18:17:30 +01:00
parent bad499b3fd
commit ef2322bdb7

View File

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