|
|
@ -323,6 +323,11 @@ class TorrentService |
|
|
|
{ |
|
|
|
{ |
|
|
|
$contributors = []; |
|
|
|
$contributors = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->findTorrentCategoriesByTorrentId($torrent->getId()) as $torrentCategory) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$contributors[] = $torrentCategory->getUserId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->findTorrentLocalesByTorrentId($torrent->getId()) as $torrentLocale) |
|
|
|
foreach ($this->findTorrentLocalesByTorrentId($torrent->getId()) as $torrentLocale) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$contributors[] = $torrentLocale->getUserId(); |
|
|
|
$contributors[] = $torrentLocale->getUserId(); |
|
|
@ -333,6 +338,11 @@ class TorrentService |
|
|
|
$contributors[] = $torrentSensitive->getUserId(); |
|
|
|
$contributors[] = $torrentSensitive->getUserId(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->findTorrentPosterByTorrentId($torrent->getId()) as $torrentPoster) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$contributors[] = $torrentPoster->getUserId(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$contributors[] = $torrent->getUserId(); |
|
|
|
$contributors[] = $torrent->getUserId(); |
|
|
|
|
|
|
|
|
|
|
|
return array_unique($contributors); |
|
|
|
return array_unique($contributors); |
|
|
|