diff --git a/app/models/comment.rb b/app/models/comment.rb index f4298d14e40a2e6175c09c96317a063e7974d612..da6711d6572b1a3107a652e5c44cd57b0072b991 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