mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
add taxonomy field to torrent comment fields
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user