mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Only set up comment embed if there is a comment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user