Skip to content

136 follower feed#139

Merged
SrJui merged 9 commits intomainfrom
136-follower-feed
Feb 26, 2026
Merged

136 follower feed#139
SrJui merged 9 commits intomainfrom
136-follower-feed

Conversation

@LucaSchmitz2003
Copy link
Copy Markdown
Contributor

Closes #136

@LucaSchmitz2003 LucaSchmitz2003 self-assigned this Feb 25, 2026
@LucaSchmitz2003 LucaSchmitz2003 linked an issue Feb 25, 2026 that may be closed by this pull request
@LucaSchmitz2003 LucaSchmitz2003 marked this pull request as ready for review February 25, 2026 14:30
Copilot AI review requested due to automatic review settings February 25, 2026 14:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/following that returns posts from followed users
  • Implemented repository layer with SQL JOIN to efficiently fetch posts from followers
  • Restructured /post routes 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.

LucaSchmitz2003 and others added 3 commits February 25, 2026 15:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

LucaSchmitz2003 and others added 2 commits February 25, 2026 16:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@LucaSchmitz2003
Copy link
Copy Markdown
Contributor Author

@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..

@SrJui SrJui merged commit 7078b70 into main Feb 26, 2026
1 check passed
@SrJui SrJui deleted the 136-follower-feed branch February 26, 2026 08:46
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.

Follower-Feed

3 participants