projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2784962
)
Apply suggestion to lib/pleroma/delivery.ex
author
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 15:23:26 +0000
(15:23 +0000)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 15:23:26 +0000
(15:23 +0000)
lib/pleroma/delivery.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/delivery.ex
b/lib/pleroma/delivery.ex
index ce8fb96f40dbc09cb0955c69dc553b20ea96fab4..38c148c345c470025958b84c3b79667bf47f434e 100644
(file)
--- 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