From aefad6ae85ebbc87e8764de3ba5c121c4c977988 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 2 Jan 2014 12:15:48 -0500 Subject: [PATCH] FIX: Broken test --- app/controllers/embed_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/embed_controller.rb b/app/controllers/embed_controller.rb index be4ef56a8dd..72edca90669 100644 --- a/app/controllers/embed_controller.rb +++ b/app/controllers/embed_controller.rb @@ -11,7 +11,7 @@ class EmbedController < ApplicationController if topic_id @topic_view = TopicView.new(topic_id, current_user, {best: 5}) - @second_post_url = "#{@topic_view.topic.url}/2" + @second_post_url = "#{@topic_view.topic.url}/2" if @topic_view else Jobs.enqueue(:retrieve_topic, user_id: current_user.try(:id), embed_url: embed_url) render 'loading'