mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-04 19:14:41 +00:00
uwuzu v1.6.5 Hapuego
This commit is contained in:
+8
-14
@@ -73,7 +73,7 @@ if(isset($_GET['token']) || (!(empty($Get_Post_Json)))) {
|
||||
if( !empty($pdo) ) {
|
||||
$AuthData = APIAuth($pdo, $token, "read:users");
|
||||
if($AuthData[0] === true){
|
||||
$userdata = $AuthData[2];
|
||||
$userdata = getUserData($pdo, $userid);
|
||||
|
||||
if (empty($userdata)){
|
||||
$response = array(
|
||||
@@ -130,24 +130,18 @@ if(isset($_GET['token']) || (!(empty($Get_Post_Json)))) {
|
||||
}else{
|
||||
$isAdmin = false;
|
||||
}
|
||||
if(!(empty($userdata["follow"]))){
|
||||
$followee = preg_split("/,/", decode_yajirushi(htmlspecialchars_decode($userdata["follow"])));
|
||||
array_shift($followee);
|
||||
}else{
|
||||
|
||||
$followee = getFolloweeList($pdo, $userdata["userid"]);
|
||||
if($followee === false){
|
||||
$followee = array();
|
||||
}
|
||||
if(!(empty($userdata["follower"]))){
|
||||
$follower = preg_split("/,/", decode_yajirushi(htmlspecialchars_decode($userdata["follower"])));
|
||||
array_shift($follower);
|
||||
}else{
|
||||
$follower = getFollowerList($pdo, $userdata["userid"]);
|
||||
if($follower === false){
|
||||
$follower = array();
|
||||
}
|
||||
|
||||
$followcnts = explode(',', $userdata["follow"]);
|
||||
$userdata["follow_cnt"] = (int)count($followcnts)-1;
|
||||
|
||||
$followercnts = explode(',', $userdata["follower"]);
|
||||
$userdata["follower_cnt"] = (int)count($followercnts)-1;
|
||||
$userdata["follow_cnt"] = (int)count($followee);
|
||||
$userdata["follower_cnt"] = (int)count($follower);
|
||||
|
||||
$allueuse = $pdo->prepare("SELECT account FROM ueuse WHERE account = :userid");
|
||||
$allueuse->bindValue(':userid', $userdata["userid"]);
|
||||
|
||||
@@ -80,7 +80,6 @@ if(isset($_GET['token']) || (!(empty($Get_Post_Json)))) {
|
||||
$Follow_userdata = $DataQuery->fetch();
|
||||
|
||||
$userid = $userData["userid"];
|
||||
$myfollowlist = $userData["follow"];
|
||||
|
||||
if(!(empty($Follow_userdata))){
|
||||
if(!($userid == $Follow_userdata['userid'])){
|
||||
|
||||
Reference in New Issue
Block a user