对留言在动态里面的显示进行了修改!
This commit is contained in:
parent
f99e5dcc64
commit
0c5c07a5a3
|
@ -24,7 +24,7 @@ class JournalsForMessage < ActiveRecord::Base
|
||||||
|
|
||||||
def act_as_activity
|
def act_as_activity
|
||||||
if self.jour_type == 'Principal'
|
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)
|
self.acts << Activity.new(:user_id => self.user_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue