更多资料新增元信息

This commit is contained in:
2026-08-23 13:09:55 +08:00
parent 57b12dea80
commit 32cda220f7
3 changed files with 59 additions and 15 deletions
+3
View File
@@ -25,6 +25,7 @@ defined('ABSPATH') || exit;
* @type array $favorite_post_ids Array of favorited post IDs.
* @type array $profile_details Server-filtered fixed public profile fields.
* @type array $profile_signals Identity chips (verified, level, badges).
* @type array $verify_state Verification tri-state {state,label} for the details dialog.
* @type array $profile_notice Ban/restriction notice, if any.
* @type string $background_url Cover image URL.
* @type float $credit_balance Credit balance (own profile only).
@@ -86,6 +87,7 @@ function aksrt_get_user_dashboard_view(int $user_id, array $args = []): array {
$profile_signals = $user_home_manager ? $user_home_manager->get_profile_signals($user_id) : [];
$profile_notice = $user_home_manager ? $user_home_manager->get_profile_notice($user_id) : [];
$show_report = $user_home_manager ? $user_home_manager->show_report_entry() : false;
$verify_state = $user_home_manager ? $user_home_manager->get_verify_state($user_id) : ['state' => '', 'label' => ''];
return [
'post_count' => $post_count,
@@ -96,6 +98,7 @@ function aksrt_get_user_dashboard_view(int $user_id, array $args = []): array {
'profile_details' => $profile_details,
'profile_signals' => $profile_signals,
'profile_notice' => $profile_notice,
'verify_state' => $verify_state,
'show_report' => $show_report,
'background_url' => $background_url,
'credit_balance' => $credit_balance,