Refactor IP History

This commit is contained in:
xiaomlove
2025-10-14 14:54:44 +07:00
parent 0f172a94be
commit ba8715a3f9
34 changed files with 494 additions and 131 deletions
-2
View File
@@ -221,9 +221,7 @@ class TorrentRepository extends BaseRepository
}
if ($apiQueryBuilder->hasIncludeField('description') && $apiQueryBuilder->hasInclude('extra')) {
do_log("before format_description of torrent: {$torrent->id}");
$descriptionArr = format_description($torrent->extra->descr ?? '');
do_log("after format_description of torrent: {$torrent->id}");
$torrent->description = $descriptionArr;
$torrent->images = get_image_from_description($descriptionArr);
}