Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental home feed #4752

Merged
merged 23 commits into from Nov 13, 2023
Merged

Experimental home feed #4752

merged 23 commits into from Nov 13, 2023

Conversation

dansup
Copy link
Member

@dansup dansup commented Nov 11, 2023

This PR provides an experimental home feed api (disabled by default)

The experimental home feed api includes:

  • Hashtag follows (posts including a hashtag you follow)
  • Improved filtering (de-duped reblogs, show/hide reblogs per account)
  • Significant performance improvements (feeds are served from memory, not expensive db queries)

Config

To enable this feature, set EXP_CHT=true in .env and run php artisan config:cache && php artisan cache:clear

Notes

  • This only affects the /api/v1/timelines/home endpoint, the webUI does not consume this endpoint (yet)

TODO

Controllers\Api

  • ApiV1Controller

Jobs\HomeFeedPipeline

  • FeedFilterPipeline
  • FeedInsertPipeline
  • FeedFollowPipeline
  • FeedUnfollowPipeline
  • FeedRemovePipeline
  • FeedWarmCachePipeline
  • HashtagInsertFanoutPipeline
  • HashtagRemoveFanoutPipeline

Observers

  • StatusHashtagObserver

Services

  • FollowerService
  • HashtagFollowService
  • HashtagService
  • HomeTimelineService

@dansup dansup merged commit e843935 into dev Nov 13, 2023
3 checks passed
@expertmanofficial
Copy link

It seems to be that this change affected my home feed.

Now instead of posts from people I follow, I see posts from unknown people that I don't follow.

I don't follow any hashtags even.

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.

None yet

3 participants