Skip to content

Commit

Permalink
Merge pull request #63 from planetary-social/only-log-our-users
Browse files Browse the repository at this point in the history
Only log nos users
  • Loading branch information
dcadenas authored Aug 27, 2024
2 parents cf760a0 + 9ae79bd commit 2363055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/app/follow_change_puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func (f *FollowChangePuller) Run(ctx context.Context) error {
return nil // Channel closed, exit gracefully
}

f.logger.Debug().Message(followChange.String())

tokens, err := f.queries.GetTokens.Handle(ctx, followChange.Followee)
if err != nil {
// Not one of our users, ignore
continue
}

f.logger.Debug().Message(followChange.String())

for _, token := range tokens {
if err := f.apns.SendFollowChangeNotification(*followChange, token); err != nil {
f.logger.Error().
Expand Down

0 comments on commit 2363055

Please sign in to comment.