Commit ef2322bd authored by lain's avatar lain
Browse files

Delete notifications on activity deletion.

parent bad499b3
Pipeline #417 failed with stage
in 2 minutes and 49 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment