FIX: increase default max length of chat message excerpts (#24842)
Increases the default max length of message excerpts to allow for longer titles in threads index.
This commit is contained in:
parent
775dce1f13
commit
22d8978eb4
|
@ -106,7 +106,7 @@ module Chat
|
|||
end
|
||||
end
|
||||
|
||||
def excerpt(max_length: 50)
|
||||
def excerpt(max_length: 100)
|
||||
# just show the URL if the whole message is a URL, because we cannot excerpt oneboxes
|
||||
return message if UrlHelper.relaxed_parse(message).is_a?(URI)
|
||||
|
||||
|
@ -117,7 +117,7 @@ module Chat
|
|||
PrettyText.excerpt(cooked, max_length, strip_links: true, keep_mentions: true)
|
||||
end
|
||||
|
||||
def censored_excerpt(max_length: 50)
|
||||
def censored_excerpt(max_length: 100)
|
||||
WordWatcher.censor(excerpt(max_length: max_length))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue