mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +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\PostLike\PostLikeRepository;
|
||||||
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
||||||
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
||||||
|
use NexusPlugin\Work\Models\RoleWork;
|
||||||
|
use NexusPlugin\Work\WorkRepository;
|
||||||
use PhpIP\IP;
|
use PhpIP\IP;
|
||||||
use PhpIP\IPBlock;
|
use PhpIP\IPBlock;
|
||||||
use Rhilip\Bencode\Bencode;
|
use Rhilip\Bencode\Bencode;
|
||||||
@@ -92,11 +94,8 @@ class Test extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$categoryTaxonomies = [
|
$rep = new WorkRepository();
|
||||||
'category' => ['table' => 'categories', 'model' => Category::class],
|
$rep->settleRole(5);
|
||||||
];
|
|
||||||
$categoryTaxonomies = array_merge($categoryTaxonomies, SearchBox::$taxonomies);
|
|
||||||
dd($categoryTaxonomies);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class Torrent extends NexusModel
|
|||||||
public static $commentFields = [
|
public static $commentFields = [
|
||||||
'id', 'name', 'added', 'visible', 'banned', 'owner', 'sp_state', 'pos_state', 'hr', 'picktype', 'picktime',
|
'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',
|
'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 = [
|
public static $basicRelations = [
|
||||||
|
|||||||
Reference in New Issue
Block a user