From: rinpatch Date: Fri, 13 Sep 2019 15:23:26 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/delivery.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=05f8a066a107af2f7151aee8d85af97cf6a4835c;p=akkoma Apply suggestion to lib/pleroma/delivery.ex --- diff --git a/lib/pleroma/delivery.ex b/lib/pleroma/delivery.ex index ce8fb96f4..38c148c34 100644 --- a/lib/pleroma/delivery.ex +++ b/lib/pleroma/delivery.ex @@ -31,7 +31,7 @@ defmodule Pleroma.Delivery do def create(object_id, user_id) do %Delivery{} |> changeset(%{user_id: user_id, object_id: object_id}) - |> Repo.insert() + |> Repo.insert(on_conflict: :nothing) end def get(object_id, user_id) do