From: Lain Iwakura Date: Fri, 8 Dec 2017 17:17:30 +0000 (+0100) Subject: Delete notifications on activity deletion. X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=ef2322bdb7d46882eeae0271c4381efda6835c3c;p=akkoma Delete notifications on activity deletion. --- 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