Delete notifications on activity deletion.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user