record and show which comments were posted by e-mail, for no particular reason

This commit is contained in:
joshua stein 2013-12-28 12:00:29 -06:00
commit e63e45af2b
4 changed files with 12 additions and 1 deletions

View file

@ -134,6 +134,7 @@ body.strip!
c = Comment.new
c.user_id = sending_user.id
c.comment = body
c.is_from_email = true
if parent.is_a?(Comment)
c.story_id = parent.story_id