about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorふぁぼ原 <ko_kurihara@yahoo.co.jp>2017-09-15 01:03:20 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-14 18:03:20 +0200
commit3816943e6b5e86b22c35f3c068521f7a9007deec (patch)
tree3a245238e9410a4dce71bba1accbb2bc0e456508 /app/lib
parentb39d512ade9f556ae29d60239102faf67ff6a89f (diff)
Enable to recognize most kinds of characters as URL paths (#4941)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index cacc0364f..d9f843f44 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -131,7 +131,7 @@ class Formatter
   end
 
   def link_html(url)
-    url    = Addressable::URI.parse(url).display_uri.to_s
+    url    = Addressable::URI.parse(url).to_s
     prefix = url.match(/\Ahttps?:\/\/(www\.)?/).to_s
     text   = url[prefix.length, 30]
     suffix = url[prefix.length + 30..-1]