add taxonomy field to torrent comment fields

This commit is contained in:
xiaomlove
2022-12-03 19:56:54 +08:00
parent fe6564dd7e
commit 56017e5e6b
2 changed files with 5 additions and 6 deletions

View File

@@ -55,6 +55,8 @@ use NexusPlugin\Permission\Models\Role;
use NexusPlugin\PostLike\PostLikeRepository;
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
use NexusPlugin\Work\Models\RoleWork;
use NexusPlugin\Work\WorkRepository;
use PhpIP\IP;
use PhpIP\IPBlock;
use Rhilip\Bencode\Bencode;
@@ -92,11 +94,8 @@ class Test extends Command
*/
public function handle()
{
$categoryTaxonomies = [
'category' => ['table' => 'categories', 'model' => Category::class],
];
$categoryTaxonomies = array_merge($categoryTaxonomies, SearchBox::$taxonomies);
dd($categoryTaxonomies);
$rep = new WorkRepository();
$rep->settleRole(5);
}

View File

@@ -33,7 +33,7 @@ class Torrent extends NexusModel
public static $commentFields = [
'id', 'name', 'added', 'visible', 'banned', 'owner', 'sp_state', 'pos_state', 'hr', 'picktype', 'picktime',
'last_action', 'leechers', 'seeders', 'times_completed', 'views', 'size', 'cover', 'anonymous', 'approval_status',
'pos_state_until', 'category'
'pos_state_until', 'category', 'source', 'medium', 'codec', 'standard', 'processing', 'team', 'audiocodec',
];
public static $basicRelations = [