From 3ce3dfe77b909ffc6f4efebed8990c92040e2211 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 13 Nov 2023 19:38:05 +0200 Subject: [PATCH] fix contributors list by integrate new features --- src/Service/TorrentService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index abb902e..c0c3d52 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -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);