projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0163d
)
Use Object.change instead of Ecto.Changeset.change
author
Rin Toshaka
<rinpatch@sdf.org>
Sun, 30 Dec 2018 10:08:19 +0000
(11:08 +0100)
committer
Rin Toshaka
<rinpatch@sdf.org>
Sun, 30 Dec 2018 10:08:19 +0000
(11:08 +0100)
lib/pleroma/web/common_api/utils.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/common_api/utils.ex
b/lib/pleroma/web/common_api/utils.ex
index 7b11bc3edad2d731625ecb9cc9c470425e5b571f..593404e4d578b306e92d991d1a286b66e0c0b744 100644
(file)
--- 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.Changese
t.change(activity)
+ cng =
Objec
t.change(activity)
Repo.update(cng)
scrubbed_html
else