projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb1dfa
)
Apply suggestion to lib/pleroma/web/common_api/utils.ex
author
Roman Chvanikov
<chvanikoff@pm.me>
Fri, 22 May 2020 15:44:10 +0000
(15:44 +0000)
committer
Roman Chvanikov
<chvanikoff@pm.me>
Fri, 22 May 2020 15:44:10 +0000
(15:44 +0000)
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 7be9d8caaadd2a720bb9b6d949aba4ff19ec0ca5..1c0d90a2bdfe442c5f192e063a2200b3ec03a7fd 100644
(file)
--- a/
lib/pleroma/web/common_api/utils.ex
+++ b/
lib/pleroma/web/common_api/utils.ex
@@
-397,7
+397,7
@@
defmodule Pleroma.Web.CommonAPI.Utils do
defp shortname(name) do
with max_length when max_length > 0 <-
-
Pleroma.
Config.get([Pleroma.Upload, :filename_display_max_length], 30),
+ Config.get([Pleroma.Upload, :filename_display_max_length], 30),
true <- String.length(name) > max_length do
String.slice(name, 0..max_length) <> "…"
else