Skip to content

Commit

Permalink
Merge pull request #71 from planetary-social/only_log_nos_users
Browse files Browse the repository at this point in the history
Only log nos users
  • Loading branch information
dcadenas authored Sep 27, 2024
2 parents ddb885b + 7477393 commit 209a355
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion service/app/follow_change_puller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ func (f *FollowChangePuller) Run(ctx context.Context) error {
}

tokens, err := f.queries.GetTokens.Handle(ctx, followChangeAggregate.Followee)
if err != nil {
if err != nil || len(tokens) == 0 {
f.logger.Error().
WithField("followee", followChangeAggregate.Followee.Hex()).
WithError(err).
Message("error getting tokens for followee")
continue
}

if len(tokens) == 0 {
// Not one of our users, ignore
continue
}
Expand Down

0 comments on commit 209a355

Please sign in to comment.