Skip to content

Commit

Permalink
Don't add backfilled posts to feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Nov 3, 2024
1 parent 9021f03 commit 4107fa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/consumer/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ func (c *Consumer) HandleCreatePost(ctx context.Context, repo, rkey string, inde
}

// If the actor has a label, update the label feed (for root posts only)
if rec.Reply == nil {
// Filter out posts with a createdAt very far in the past
if rec.Reply == nil && recCreatedAt.After(time.Now().Add(-time.Hour*24*7)) {
// Fetch the labels for the actor
labels, err := c.Store.Queries.ListActorLabels(ctx, repo)
if err != nil {
Expand Down

0 comments on commit 4107fa5

Please sign in to comment.