projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2975da2
)
don't try to truncate non-strings
author
Sadposter
<hannah+pleroma@coffee-and-dreams.uk>
Wed, 4 Sep 2019 14:57:42 +0000
(15:57 +0100)
committer
Sadposter
<hannah+pleroma@coffee-and-dreams.uk>
Wed, 4 Sep 2019 14:57:42 +0000
(15:57 +0100)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 87e56b5b41c8c6da9c649ddf8b825a3eddc427d9..e2ebce6fcea7e3e92599e613a8c32c46e9dd92cf 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-175,7
+175,7
@@
defmodule Pleroma.User do
end
defp truncate_if_exists(params, key, max_length) do
- if Map.has_key?(params, key) do
+ if Map.has_key?(params, key)
and is_binary(params[key])
do
{value, _chopped} = String.split_at(params[key], max_length)
Map.put(params, key, value)
else