Fixing up deletes a bit #327

Merged
floatingghost merged 10 commits from delete-fixing into develop 2022-12-01 15:00:54 +00:00
Showing only changes of commit 0dc333fdb0 - Show all commits

View file

@ -10,7 +10,6 @@ defmodule Pleroma.Object do
alias Pleroma.Activity alias Pleroma.Activity
alias Pleroma.Config alias Pleroma.Config
alias Pleroma.Delivery
alias Pleroma.Hashtag alias Pleroma.Hashtag
alias Pleroma.Object alias Pleroma.Object
alias Pleroma.Object.Fetcher alias Pleroma.Object.Fetcher
@ -31,7 +30,6 @@ defmodule Pleroma.Object do
field(:data, :map) field(:data, :map)
many_to_many(:hashtags, Hashtag, join_through: "hashtags_objects", on_replace: :delete) many_to_many(:hashtags, Hashtag, join_through: "hashtags_objects", on_replace: :delete)
has_many(:deliveries, Delivery, on_delete: :delete_all)
timestamps() timestamps()
end end