删除私信分支链路

This commit is contained in:
2026-08-23 13:42:35 +08:00
parent 1c5c6d86bb
commit c6c2c0af6d
39 changed files with 32 additions and 1465 deletions
@@ -151,11 +151,6 @@ trait UserControllerAuthPhoneOperations {
return $this->error('未登录', 401);
}
$unread = 0;
if (class_exists('\AKSRT\Messages\PrivateMessage')) {
$unread = \AKSRT\Messages\PrivateMessage::get_instance()->get_unread_count($user->ID);
}
$credits = 0;
if (class_exists('\AKSRT\Credits\Credits')) {
$credits = \AKSRT\Credits\Credits::balance($user->ID);
@@ -170,7 +165,6 @@ trait UserControllerAuthPhoneOperations {
? aksrt_get_avatar_url($user->ID, ['size' => 48])
: get_avatar_url($user->ID, ['size' => 48]),
'is_admin' => current_user_can('manage_options'),
'unread' => $unread,
'credits' => $credits,
],
]);