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

This commit is contained in:
huang 2015-09-30 11:31:29 +08:00
parent 326c05d0eb
commit 88b8854ed7
1 changed files with 1 additions and 1 deletions

View File

@ -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