- <% if article.positive_reactions_count > 0 %>
-

" alt="Reactions" /> <%= article.positive_reactions_count %>
+ <% if article.public_reactions_count > 0 %>
+

" alt="Reactions" /> <%= article.public_reactions_count %>
<% end %>
<% if article.comments_count > 0 %>

" alt="Reactions" class="comments-bubble" /> <%= article.comments_count %>
diff --git a/app/views/api/v0/articles/_article.json.jbuilder b/app/views/api/v0/articles/_article.json.jbuilder
index 4d8d69ed7..30a67282a 100644
--- a/app/views/api/v0/articles/_article.json.jbuilder
+++ b/app/views/api/v0/articles/_article.json.jbuilder
@@ -10,11 +10,12 @@ json.extract!(
:path,
:url,
:comments_count,
- :positive_reactions_count,
+ :public_reactions_count,
:collection_id,
:published_timestamp,
)
+json.positive_reactions_count article.public_reactions_count
json.cover_image cloud_cover_url(article.main_image)
json.social_image article_social_image_url(article)
json.canonical_url article.processed_canonical_url
diff --git a/app/views/api/v0/articles/me.json.jbuilder b/app/views/api/v0/articles/me.json.jbuilder
index ff9754d47..e090d35d3 100644
--- a/app/views/api/v0/articles/me.json.jbuilder
+++ b/app/views/api/v0/articles/me.json.jbuilder
@@ -12,12 +12,13 @@ json.array! @articles do |article|
:path,
:url,
:comments_count,
- :positive_reactions_count,
+ :public_reactions_count,
:page_views_count,
:published_timestamp,
:body_markdown,
)
+ json.positive_reactions_count article.public_reactions_count
json.cover_image cloud_cover_url(article.main_image)
json.tag_list article.cached_tag_list_array
json.canonical_url article.processed_canonical_url
diff --git a/app/views/api/v0/articles/onboarding.json.jbuilder b/app/views/api/v0/articles/onboarding.json.jbuilder
index 52c9a9086..ce578dd28 100644
--- a/app/views/api/v0/articles/onboarding.json.jbuilder
+++ b/app/views/api/v0/articles/onboarding.json.jbuilder
@@ -6,7 +6,7 @@ json.array! @articles do |article|
:description,
:published_at,
:comments_count,
- :positive_reactions_count,
+ :public_reactions_count,
)
json.tag_list article.cached_tag_list
diff --git a/app/views/articles/_single_story.html.erb b/app/views/articles/_single_story.html.erb
index 94ac6f2bd..d6868efa6 100644
--- a/app/views/articles/_single_story.html.erb
+++ b/app/views/articles/_single_story.html.erb
@@ -1,17 +1,17 @@
<% if featured == true %>
-
-
-
-
+
+
+
+
<% end %>
<% if story.video.present? && story.video_thumbnail_url.present? %>
-
-
- <%= story.video_duration_in_minutes %>
-
-
+
+
+ <%= story.video_duration_in_minutes %>
+
+
<% end %>
@@ -19,9 +19,9 @@
<% if story.cached_organization && !@organization_article_index %>
-
-
-
+
+
+
<% end %>
@@ -34,10 +34,10 @@
<%= story.cached_user.name %>
<% if story.cached_organization && !@organization_article_index %>
-
- for
- <%= story.cached_organization.name %>
-
+
+ for
+ <%= story.cached_organization.name %>
+
<% end %>
@@ -53,34 +53,29 @@
<%= inline_svg_tag("small-heart.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: "Reactions") %>
- <%= story.positive_reactions_count %>
+ <%= story.public_reactions_count %>
reactions
<% if story.comments_count > 0 %>
-
- <%= inline_svg_tag("small-comment.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: "Comments") %>
- <%= story.comments_count %>
- comments
-
+
+ <%= inline_svg_tag("small-comment.svg", aria: true, width: 24, height: 24, class: "crayons-icon", title: "Comments") %>
+ <%= story.comments_count %>
+ comments
+
<% end %>
<%= story.reading_time < 1 ? 1 : story.reading_time %> min read
-