Don't add deliveries to object schema
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
FloatingGhost 2022-12-01 13:01:26 +00:00
parent 4d1a18537e
commit 0dc333fdb0

View file

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