Conversation
There was a problem hiding this comment.
Pull request overview
This pull request implements a follower feed endpoint that allows users to retrieve posts only from users they follow. It addresses issue #136, which requested an endpoint similar to the general feed but filtered to show posts only from followed users.
Changes:
- Added new GET endpoint
/post/followingthat returns posts from followed users - Implemented repository layer with SQL JOIN to efficiently fetch posts from followers
- Restructured
/postroutes into a route group for better organization
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| internal/handlers/following_posts_feed.go | New handler for the follower feed endpoint with offset pagination support |
| internal/services/following_posts.go | Service layer that retrieves and transforms posts from followers |
| internal/repositories/following_posts.go | Repository with SQL query joining posts with follow relationships |
| internal/server/router.go | Refactored post routes into a group and added the new /following endpoint |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… user-specific posts
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…queries accordingly
|
@SrJui btw auch breaking change für den bisherigen posts endpoint: json feld "created_at" wurde in "updated_at" umbenannt, da es irreführend war.. |
Closes #136