Skip to content
Snippets Groups Projects
Commit a32e2390 authored by Rin Toshaka's avatar Rin Toshaka
Browse files

Use Object.change instead of Ecto.Changeset.change

parent 9a0163db
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment