diff options
author | Rin Toshaka <rinpatch@sdf.org> | 2018-12-30 11:08:19 +0100 |
---|---|---|
committer | Rin Toshaka <rinpatch@sdf.org> | 2018-12-30 11:08:19 +0100 |
commit | a32e23905aa24335215f04fd56e33b663af54321 (patch) | |
tree | 4f64be01a8f4c9d08dc29af389df58ab5e7ad631 | |
parent | 9a0163db53580182599a9358bd0197ee0c61779d (diff) | |
download | pleroma-a32e23905aa24335215f04fd56e33b663af54321.tar.gz |
Use Object.change instead of Ecto.Changeset.change
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 7b11bc3ed..593404e4d 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -300,7 +300,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do if !(new_scrubber_cache == scrubber_cache) or scrubbed_html == nil do scrubbed_html = HTML.filter_tags(content, scrubbers) new_scrubber_cache = [%{:scrubbers => key, :content => scrubbed_html} | new_scrubber_cache] - IO.puts(activity) activity = Map.put( @@ -309,7 +308,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do Kernel.put_in(activity.data, ["object", "scrubber_cache"], new_scrubber_cache) ) - cng = Ecto.Changeset.change(activity) + cng = Object.change(activity) Repo.update(cng) scrubbed_html else |