forked from YokaiRick/akkoma
Apply suggestion to lib/pleroma/web/common_api/utils.ex
This commit is contained in:
parent
8eb1dfadca
commit
5d60b25e69
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ def to_masto_date(_), 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
|
||||
|
|
Loading…
Reference in a new issue