class NodeImagesController < ApplicationController
  def show
    @node = current_user.available_nodes.find(params[:id])
    images = if @node.link.present?
               LinkThumbnailer.generate(@node.link).images rescue []
             else
               []
             end
    render partial: 'shared/node_image', locals: {images: images}
  end
end
