diff --git a/app/models/comment.rb b/app/models/comment.rb index f4298d14e..da6711d65 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -27,6 +27,7 @@ class Comment < ActiveRecord::Base serialize :youtube_titles, Hash before_save do get_youtube_title text + self.text.strip! unless self.text.nil? end def diaspora_handle person.diaspora_handle