From 0923eb22346c00f890d5dc4e72e92c5f4650ff47 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 15 Oct 2023 22:15:09 +0300 Subject: [PATCH] fix contributors selection --- src/Service/TorrentService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 6c3d2a4..c34642f 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -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(); }