projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
giant massive dep upgrade and dialyxir-found error emporium (#371)
[akkoma]
/
lib
/
pleroma
/
web
/
metadata
/
utils.ex
diff --git
a/lib/pleroma/web/metadata/utils.ex
b/lib/pleroma/web/metadata/utils.ex
index 8990bef543aae34ba0662e0b20e80d80fd765586..7308726f5f193136a3496799bd64f0637f8361d9 100644
(file)
--- a/
lib/pleroma/web/metadata/utils.ex
+++ b/
lib/pleroma/web/metadata/utils.ex
@@
-30,6
+30,10
@@
defmodule Pleroma.Web.Metadata.Utils do
|> scrub_html_and_truncate_object_field(object)
end
+ def scrub_html_and_truncate(%{data: _}) do
+ ""
+ end
+
def scrub_html_and_truncate(content, max_length \\ 200) when is_binary(content) do
content
|> scrub_html