Apply suggestion to lib/pleroma/delivery.ex
This commit is contained in:
parent
2784962dba
commit
05f8a066a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user