FIX: Error alerting tracking users of PM when replying in general
This commit is contained in:
parent
bed7781fe2
commit
13de577568
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class PostAlerter
|
||||||
user.id == post.user_id
|
user.id == post.user_id
|
||||||
end.each do |user|
|
end.each do |user|
|
||||||
if TopicUser.get(post.topic, user).try(:notification_level) == TopicUser.notification_levels[:tracking]
|
if TopicUser.get(post.topic, user).try(:notification_level) == TopicUser.notification_levels[:tracking]
|
||||||
next unless post.reply_to_post_number || post.reply_to_post.user_id == user.id
|
next unless post.reply_to_post_number || post.reply_to_post.try(:user_id) == user.id
|
||||||
end
|
end
|
||||||
create_notification(user, Notification.types[:private_message], post)
|
create_notification(user, Notification.types[:private_message], post)
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue