summaryrefslogtreecommitdiff
path: root/lib/banzai/reference_redactor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/reference_redactor.rb')
-rw-r--r--lib/banzai/reference_redactor.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/banzai/reference_redactor.rb b/lib/banzai/reference_redactor.rb
index 936436982e7..81e4fd45966 100644
--- a/lib/banzai/reference_redactor.rb
+++ b/lib/banzai/reference_redactor.rb
@@ -111,6 +111,7 @@ module Banzai
parser = Banzai::ReferenceParser[type].new(context)
visible.merge(parser.nodes_visible_to_user(user, nodes))
+ rescue Banzai::ReferenceParser::InvalidReferenceType
end
visible