diff options
author | Lain Iwakura <lain@soykaf.club> | 2017-12-08 18:17:30 +0100 |
---|---|---|
committer | Lain Iwakura <lain@soykaf.club> | 2017-12-08 18:17:30 +0100 |
commit | ef2322bdb7d46882eeae0271c4381efda6835c3c (patch) | |
tree | 395ae0e5b79ce5482d36e2be2204b31b4e7a7812 /lib | |
parent | bad499b3fd95d1643890feaedea07123c004be57 (diff) | |
download | pleroma-ef2322bdb7d46882eeae0271c4381efda6835c3c.tar.gz |
Delete notifications on activity deletion.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/activity.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index a35ccc9b4..afd09982f 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -7,7 +7,7 @@ defmodule Pleroma.Activity do field :data, :map field :local, :boolean, default: true field :actor, :string - has_many :notifications, Notification + has_many :notifications, Notification, on_delete: :delete_all timestamps() end |