feat: 收口 1:1 剩余欠账(论坛壳/圈子/501/私信默认/资源死码)

- 论坛 board/topic/plate/tag/plate-cat 接入 content-wrap/content-layout 主站流壳
- 公共主页 plate 圈子 tab 接关注/管理版块真实数据并计数
- forum-topic 渲染封面/付费扩展位 meta(§7.3)
- 后台删除消息/背景图/评论图 REST 从 501 补齐为真实实现
- 私信 private_s 缺省 true(完整 1:1,不再兼容默认关)
- 清理 aksrt_get_resource_meta 不可达旧实现;挂载 AKSRT_AI 配置门控实例
- 登录 modal 启用 colorful-header;订单页粉边 focus 软化;侧栏次级入口视觉弱化

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-12 13:06:47 +08:00
co-authored by Claude Fable 5
parent 0941c7d23f
commit fb68b3f8c6
16 changed files with 313 additions and 82 deletions
+26 -1
View File
@@ -92,13 +92,38 @@ if (!function_exists('aksrt_get_user_home_page_context')) {
$follow_count = (int) AKSRT_Follow::get_instance()->get_following_count($user_id);
}
$plate_count = 0;
if ($forum_instance) {
$seen_plates = [];
if (method_exists($forum_instance, 'get_user_followed_plates')) {
foreach ((array) $forum_instance->get_user_followed_plates($user_id) as $plate) {
$pid = (int) ($plate['id'] ?? 0);
if ($pid > 0) {
$seen_plates[$pid] = true;
}
}
}
if (method_exists($forum_instance, 'get_user_managed_plates')) {
$managed = (array) $forum_instance->get_user_managed_plates($user_id);
foreach (['owned', 'moderating'] as $bucket) {
foreach ((array) ($managed[$bucket] ?? []) as $plate) {
$pid = (int) ($plate['id'] ?? 0);
if ($pid > 0) {
$seen_plates[$pid] = true;
}
}
}
}
$plate_count = count($seen_plates);
}
$tab_counts = [
'posts' => $post_count,
'comments' => $comment_count,
'favorites' => $favorite_count,
'credits' => $credits_enabled && $is_own_profile ? (int) round((float) $credit_balance) : 0,
'product' => $product_count,
'plate' => 0,
'plate' => $plate_count,
'forum' => $forum_topic_count,
'follow' => $follow_count,
];