删除私信分支链路
This commit is contained in:
@@ -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,
|
||||
],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user