对留言在动态里面的显示进行了修改!

This commit is contained in:
huangjingquan 2013-12-09 17:10:10 +08:00
parent f99e5dcc64
commit 0c5c07a5a3
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class JournalsForMessage < ActiveRecord::Base
def act_as_activity
if self.jour_type == 'Principal'
unless self.user_id == self.jour.id && self.user_id != self.reply_id
unless self.user_id == self.jour.id && self.user_id != self.reply_id && self.reply_id !=0
self.acts << Activity.new(:user_id => self.user_id)
end
end