From 1e241bf4941086280dafddb49d3dd2f18fca0a81 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 22 May 2023 22:12:41 -0400 Subject: [PATCH] only embed player in feed --- catalog/templates/_item_card.html | 2 +- social/templates/activity/comment_focus_item.html | 2 +- social/templates/activity/mark_item.html | 2 +- social/templates/activity/review_item.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/catalog/templates/_item_card.html b/catalog/templates/_item_card.html index fabcecc2..c1171ef6 100644 --- a/catalog/templates/_item_card.html +++ b/catalog/templates/_item_card.html @@ -1,5 +1,5 @@ {% load i18n %} -{% if item.get_embed_link %} +{% if allow_embed and item.get_embed_link %}
{{ item.title }} diff --git a/social/templates/activity/comment_focus_item.html b/social/templates/activity/comment_focus_item.html index 9fc7e464..0f5cb23d 100644 --- a/social/templates/activity/comment_focus_item.html +++ b/social/templates/activity/comment_focus_item.html @@ -64,7 +64,7 @@ {% if activity.action_object.mark.rating %}{{ activity.action_object.mark.rating | rating_star }}{% endif %}
- {% include "_item_card.html" with item=activity.action_object.item %} + {% include "_item_card.html" with item=activity.action_object.item allow_embed=1 %} {% if activity.action_object.mark.text %}