Skip to content

Commit

Permalink
Add media_previews feature state to link cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lee committed Oct 7, 2016
1 parent b288e1a commit c074762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions r2/r2/models/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ def add_props(cls, user, wrapped):

# attach video or selftext as needed
item.link_child, item.editable = make_link_child(item, show_media_preview)
item.feature_media_previews = feature.is_enabled("media_previews")

if item.is_self and not item.promoted:
item.href_url = item.permalink
Expand Down

0 comments on commit c074762

Please sign in to comment.