diff --git a/app/models/user_profile.rb b/app/models/user_profile.rb index be6484552c5..a6ceec48584 100644 --- a/app/models/user_profile.rb +++ b/app/models/user_profile.rb @@ -20,7 +20,7 @@ class UserProfile < ActiveRecord::Base BAKED_VERSION = 1 def bio_excerpt(length=350, opts={}) - excerpt = PrettyText.excerpt(bio_cooked, length, opts) + excerpt = PrettyText.excerpt(bio_cooked, length, opts).sub(/
$/, '') return excerpt if excerpt.blank? || (user.has_trust_level?(TrustLevel[1]) && !user.suspended?) PrettyText.strip_links(excerpt) end