Browse Source

fix contributors selection

main
ghost 1 year ago
parent
commit
0923eb2234
  1. 4
      src/Service/TorrentService.php

4
src/Service/TorrentService.php

@ -214,12 +214,12 @@ class TorrentService
{ {
$contributors = []; $contributors = [];
foreach ($this->findTorrentLocalesByTorrentId($torrent->getUserId()) as $torrentLocale) foreach ($this->findTorrentLocalesByTorrentId($torrent->getId()) as $torrentLocale)
{ {
$contributors[] = $torrentLocale->getUserId(); $contributors[] = $torrentLocale->getUserId();
} }
foreach ($this->findTorrentSensitiveByTorrentId($torrent->getUserId()) as $torrentSensitive) foreach ($this->findTorrentSensitiveByTorrentId($torrent->getId()) as $torrentSensitive)
{ {
$contributors[] = $torrentSensitive->getUserId(); $contributors[] = $torrentSensitive->getUserId();
} }

Loading…
Cancel
Save