diff --git a/app/views/stories/_main_stories_feed.html.erb b/app/views/stories/_main_stories_feed.html.erb
index 1f27bf259..89b0a7c57 100644
--- a/app/views/stories/_main_stories_feed.html.erb
+++ b/app/views/stories/_main_stories_feed.html.erb
@@ -1,32 +1,38 @@
<% if @default_home_feed && user_signed_in? %>
<% cache("fetched-home-articles-object", expires_in: 3.minutes) do %>
- <% @new_stories = Article.where("published_at > ? AND score > ?", rand(2..6).hours.ago, -30).
- where(published: true).
- includes(:user).
- limit(rand(15..60)).
- order("published_at DESC").
- limited_column_select.
- decorate %>
-
+ <% @new_stories = Article.where("published_at > ? AND score > ?", rand(2..6).hours.ago, -30).
+ where(published: true).
+ includes(:user).
+ limit(rand(15..60)).
+ order("published_at DESC").
+ limited_column_select.
+ decorate %>
+
+ <%= @stories.to_json(
+ only: %i[title path id user_id comments_count positive_reactions_count organization_id
+ reading_time video_thumbnail_url video video_duration_in_minutes],
+ methods: %i[readable_publish_date cached_tag_list_array flare_tag class_name
+ cloudinary_video_url video_duration_in_minutes],
+ include: {
+ user: { only: %i[username name], methods: [:profile_image_90] },
+ organization: { only: %i[slug name], methods: [:profile_image_90] }
+ },
+ ) %>">
<% 3.times do %>
-
+
@@ -45,7 +51,7 @@
<% @stories.each_with_index do |story, i| %>
<% next if story.id == @featured_story.id %>
<% if !user_signed_in? && i == 4 %>
- <%= render 'stories/sign_in_invitation' %>
+ <%= render "stories/sign_in_invitation" %>
<% end %>
<%= render "articles/single_story", story: story %>
<% end %>
diff --git a/app/views/stories/_narrow_nav_menu.html.erb b/app/views/stories/_narrow_nav_menu.html.erb
index 102bd08de..e98b429be 100644
--- a/app/views/stories/_narrow_nav_menu.html.erb
+++ b/app/views/stories/_narrow_nav_menu.html.erb
@@ -1,8 +1,8 @@
diff --git a/app/views/stories/_sign_in_invitation.html.erb b/app/views/stories/_sign_in_invitation.html.erb
index 640f9c67e..8fe2d6fdf 100644
--- a/app/views/stories/_sign_in_invitation.html.erb
+++ b/app/views/stories/_sign_in_invitation.html.erb
@@ -1,19 +1,19 @@
-
-
- <% if @tag.blank? %>
- Need more relevant posts?
Sign in to customize your feed:
- <% else %>
- dev.to is a community of
<%= number_with_delimiter User.count %> amazing humans who code.
- <% end %>
-
-
+
+
+ <% if @tag.blank? %>
+ Need more relevant posts?
Sign in to customize your feed:
+ <% else %>
+ dev.to is a community of
<%= number_with_delimiter User.count %> amazing humans who code.
+ <% end %>
+
+