fix contributors selection

This commit is contained in:
ghost 2023-10-15 22:15:09 +03:00
parent 6bda9c733c
commit 0923eb2234

View File

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