Delete notifications on activity deletion.
authorLain Iwakura <lain@soykaf.club>
Fri, 8 Dec 2017 17:17:30 +0000 (18:17 +0100)
committerLain Iwakura <lain@soykaf.club>
Fri, 8 Dec 2017 17:17:30 +0000 (18:17 +0100)
lib/pleroma/activity.ex

index a35ccc9b415cff3ab73cb21c8f852b55a9cccdc1..afd09982fcd45211249c0c4cac75f80fefaf65db 100644 (file)
@@ -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