aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request_event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request_event.rb')
-rw-r--r--app/models/info_request_event.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index 6c8d21f99..78c800ad1 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -235,6 +235,9 @@ class InfoRequestEvent < ActiveRecord::Base
if !self.info_request.indexed_by_search?
return false
end
+ if self.event_type == 'response' && !self.incoming_message.indexed_by_search?
+ return false
+ end
if self.event_type == 'comment' && !self.comment.visible
return false
end
@@ -243,6 +246,7 @@ class InfoRequestEvent < ActiveRecord::Base
return false
end
end
+
def variety
self.event_type
end