feat(topics): restore topic taxonomy workflow

This commit is contained in:
kate522 committed 2026-11-10 22:31:11 +08:00
1 parent f3dd1ec3b1
commit a254cbd3e9
59 files changed
+771 -192

No files matched your search

+8
View File
@@ -53,6 +53,14 @@ final class PostQuery {
if ($tags) {
$args['tag__in'] = $tags;
}
$topics = RendererHelpers::ids((string) ($config['topics'] ?? ''));
if ($topics) {
$args['tax_query'] = [[
'taxonomy' => 'topics',
'field' => 'term_id',
'terms' => $topics,
]];
}
$days = max(0, (int) ($config['limit_day'] ?? 0));
if ($days > 0) {