diff options
author | Thog <thog92@hotmail.fr> | 2017-11-19 02:22:07 +0100 |
---|---|---|
committer | Thog <thog92@hotmail.fr> | 2017-11-19 02:22:07 +0100 |
commit | 59770c3f5c9a038dbde6b2e1cd1551a7b8f1672b (patch) | |
tree | 178c9f13d02a3a168e1755f8dcbcde0d429315f4 /lib/pleroma/object.ex | |
parent | ed3403ad8be255480d7e41f899d74fe9e5ef3f84 (diff) | |
download | pleroma-59770c3f5c9a038dbde6b2e1cd1551a7b8f1672b.tar.gz |
Fix all compilation warnings
Diffstat (limited to 'lib/pleroma/object.ex')
-rw-r--r-- | lib/pleroma/object.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/object.ex b/lib/pleroma/object.ex index a5a1d6a76..30ba7b57a 100644 --- a/lib/pleroma/object.ex +++ b/lib/pleroma/object.ex @@ -15,7 +15,7 @@ defmodule Pleroma.Object do end def change(struct, params \\ %{}) do - changeset = struct + struct |> cast(params, [:data]) |> validate_required([:data]) |> unique_constraint(:ap_id, name: :objects_unique_apid_index) |