From 0c5c07a5a3567bbecbd40e472331ba79c71a804b Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Mon, 9 Dec 2013 17:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E7=95=99=E8=A8=80=E5=9C=A8=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E9=87=8C=E9=9D=A2=E7=9A=84=E6=98=BE=E7=A4=BA=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BA=86=E4=BF=AE=E6=94=B9=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/journals_for_message.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb index d8781abb7..74e96094f 100644 --- a/app/models/journals_for_message.rb +++ b/app/models/journals_for_message.rb @@ -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