修改吧主和发帖人消息重复的问题

guange_homework
huang 10 years ago
parent 326c05d0eb
commit 88b8854ed7

@ -79,7 +79,7 @@ class Memo < ActiveRecord::Base
receivers << self.forum.creator
end
# 添加发帖人
if self.author_id != self.parent.author_id
if self.author_id != self.parent.author_id && self.parent.author_id != self.forum.creator_id
receivers << self.parent.author
end
end

Loading…
Cancel
Save