Skip to content

Commit

Permalink
Merge pull request #3866 from Roardom/fix-external-tracker-slots
Browse files Browse the repository at this point in the history
(Fix) Only include visible peers when sending to external tracker
  • Loading branch information
HDVinnie committed May 26, 2024
2 parents 5dd8a63 + 9310960 commit d203d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Unit3dAnnounce.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static function addUser(User $user): bool

$peers = Peer::query()
->where('user_id', '=', $user->id)
->selectRaw('SUM(seeder = 1 AND active = 1) as num_seeding, SUM(seeder = 0 AND active = 1) as num_leeching')
->selectRaw('SUM(seeder = 1 AND active = 1 AND visible = 1) as num_seeding, SUM(seeder = 0 AND active = 1 AND visible = 1) as num_leeching')
->first();

return self::put('users', [
Expand Down

0 comments on commit d203d9a

Please sign in to comment.