Only set up comment embed if there is a comment

This commit is contained in:
Brian Simpson
2016-03-03 08:45:37 -08:00
parent 99f27d99c8
commit 32c52ecc75

View File

@@ -277,8 +277,7 @@ class FrontController(RedditController):
c.can_embed = bool(comment) and article.is_embeddable
is_embed = embeds.prepare_embed_request()
if is_embed:
if is_embed and comment:
embeds.set_up_comment_embed(sr, comment, showedits=showedits)
# Temporary hook until IAMA app "OP filter" is moved from partners