mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix contributors list by integrate new features
This commit is contained in:
parent
5523034307
commit
3ce3dfe77b
1 changed files with 10 additions and 0 deletions
|
|
@ -323,6 +323,11 @@ class TorrentService
|
|||
{
|
||||
$contributors = [];
|
||||
|
||||
foreach ($this->findTorrentCategoriesByTorrentId($torrent->getId()) as $torrentCategory)
|
||||
{
|
||||
$contributors[] = $torrentCategory->getUserId();
|
||||
}
|
||||
|
||||
foreach ($this->findTorrentLocalesByTorrentId($torrent->getId()) as $torrentLocale)
|
||||
{
|
||||
$contributors[] = $torrentLocale->getUserId();
|
||||
|
|
@ -333,6 +338,11 @@ class TorrentService
|
|||
$contributors[] = $torrentSensitive->getUserId();
|
||||
}
|
||||
|
||||
foreach ($this->findTorrentPosterByTorrentId($torrent->getId()) as $torrentPoster)
|
||||
{
|
||||
$contributors[] = $torrentPoster->getUserId();
|
||||
}
|
||||
|
||||
$contributors[] = $torrent->getUserId();
|
||||
|
||||
return array_unique($contributors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue