Skip to content

fix(home): hydrate real-time vote scores and blog reactions on feed - #484

Merged
trtajim merged 1 commit into
mainfrom
fix/home-feed-realtime-scores-and-blog-reactions
Oct 27, 2026
Merged

trtajim merged 1 commit into
mainfrom
fix/home-feed-realtime-scores-and-blog-reactions

Conversation

@trtajim

@trtajim trtajim commented Oct 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Hydrate is_reacted for blog items using BlogReaction so logged-in users immediately see their love reactions on the feed.
  • Fetch fresh vote_score and reactions_count for feed items outside the cache using lightweight primary-key indexed lookups.
  • Remove guest-level whole-feed caching to ensure real-time vote scores and reactions across all users without waiting for a stale 2-minute cache.

Test Plan

  • Ran formatters and linters (npm run format && composer lint && npm run lint) - all passed clean.
  • Verified authenticated and guest branches properly hydrate vote scores and love reaction states.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between ce104e4 and 53278f0.

Files selected for processing: 1
  • app/Http/Controllers/HomeController.php
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit 0bea6e1 into main Oct 27, 2026
6 checks passed
@trtajim
trtajim deleted the fix/home-feed-realtime-scores-and-blog-reactions branch October 27, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant