diff --git a/app/Repositories/TorrentRepository.php b/app/Repositories/TorrentRepository.php index c63a6af9..6d5b3849 100644 --- a/app/Repositories/TorrentRepository.php +++ b/app/Repositories/TorrentRepository.php @@ -114,7 +114,7 @@ class TorrentRepository extends BaseRepository }, ]; $result = Torrent::query()->with($with)->withCount(['peers', 'thank_users', 'reward_logs'])->visible()->findOrFail($id); - $result->download_url = $this->getDownloadUrl($id, $user->toArray()); + $result->download_url = $this->getDownloadUrl($id, $user); return $result; }