Shorten rendered links (strip protocol and www, truncate to 30 chars), redirect
to sign in page after sign up instead of root path which redirects to /about
This commit is contained in:
@ -29,7 +29,9 @@ class Formatter
|
||||
end
|
||||
|
||||
def link_urls(html)
|
||||
auto_link(html, link: :urls, html: { rel: 'nofollow noopener' })
|
||||
auto_link(html, link: :urls, html: { rel: 'nofollow noopener' }) do |text|
|
||||
truncate(text.gsub(/\Ahttps?:\/\/(www\.)?/, ''), length: 30)
|
||||
end
|
||||
end
|
||||
|
||||
def link_mentions(html, mentions)
|
||||
|
Reference in New Issue
Block a user