projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'Return HTTP code 413 when uploading an avatar/header that's too...
[akkoma]
/
lib
/
pleroma
/
search
/
elasticsearch
/
document_mappings
/
activity.ex
diff --git
a/lib/pleroma/search/elasticsearch/document_mappings/activity.ex
b/lib/pleroma/search/elasticsearch/document_mappings/activity.ex
index 3a84e991b023f295fc561c86b58e54736b758a31..b77c6e0d296626708a189494186ce64a02b790a9 100644
(file)
--- a/
lib/pleroma/search/elasticsearch/document_mappings/activity.ex
+++ b/
lib/pleroma/search/elasticsearch/document_mappings/activity.ex
@@
-30,7
+30,7
@@
defimpl Elasticsearch.Document, for: Pleroma.Activity do
trimmed
end
trimmed
end
- if String.length(content) > 1 do
+ if String.length(content) > 1
and not is_nil(data["published"])
do
{:ok, published, _} = DateTime.from_iso8601(data["published"])
%{
{:ok, published, _} = DateTime.from_iso8601(data["published"])
%{