|
@@ 83-87 (lines=5) @@
|
| 80 |
|
// Used for followers |
| 81 |
|
$following = $check->following_or($myUid, $friend); |
| 82 |
|
|
| 83 |
|
if (0 == $following[0]) { |
| 84 |
|
$resultMsgFollow = _SMALLWORLD_JSON_FOLLOWINGFRIEND . $friendName . _SMALLWORLD_JSON_FOLLOWINGFRIEND_DESC; |
| 85 |
|
$swDB->toogleFollow($following[0], $myUid, $friend); |
| 86 |
|
echo json_encode(['error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLNO_TEXT]); |
| 87 |
|
} |
| 88 |
|
if (0 < $following[0]) { |
| 89 |
|
$resultMsgFollow = _SMALLWORLD_JSON_UNFOLLOWINGFRIEND . $friendName . _SMALLWORLD_JSON_UNFOLLOWINGFRIEND_DESC; |
| 90 |
|
$swDB->toogleFollow($following[0], $myUid, $friend); |
|
@@ 88-92 (lines=5) @@
|
| 85 |
|
$swDB->toogleFollow($following[0], $myUid, $friend); |
| 86 |
|
echo json_encode(['error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLNO_TEXT]); |
| 87 |
|
} |
| 88 |
|
if (0 < $following[0]) { |
| 89 |
|
$resultMsgFollow = _SMALLWORLD_JSON_UNFOLLOWINGFRIEND . $friendName . _SMALLWORLD_JSON_UNFOLLOWINGFRIEND_DESC; |
| 90 |
|
$swDB->toogleFollow($following[0], $myUid, $friend); |
| 91 |
|
echo json_encode(['error' => 'no', 'msg' => $resultMsgFollow, 'msgChange' => _SMALLWORLD_JSON_FLYES_TEXT]); |
| 92 |
|
} |
| 93 |
|
break; |
| 94 |
|
case 3: |
| 95 |
|
// Used for accept/deny friendship requests |