Skip to content

Commit 81a6887

Browse files
committed
🐛 fix hearts on signed out home page
1 parent 12937e5 commit 81a6887

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/controllers/protips_controller.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class ProtipsController < ApplicationController
55
def home
66
redirect_to(trending_url) if signed_in?
77
@protips = Protip.all_time_popular + Protip.recently_most_viewed(20)
8+
protips_store_data
89
end
910

1011
def index
@@ -24,6 +25,10 @@ def index
2425
@protips = @protips.with_any_tagged(tags)
2526
end
2627

28+
protips_store_data
29+
end
30+
31+
def protips_store_data
2732
data = {
2833
protips: { items: serialize(@protips) },
2934
}

0 commit comments

Comments
 (0)