diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 08b24d53d..e08836392 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -12,7 +12,8 @@ def show id = clean_note_id(params[:id]) @note = LinkedData::Client::Models::Note.get(id, include_threads: true) - @ontology = (@notes.explore.relatedOntology || []).first + @note_decorator = NoteDecorator.new(@note, view_context) + @ontology = (@note.explore.relatedOntology || []).first if request.xhr? render :partial => 'thread'