friendship ended with social-app. php is my new best friend

fiddle with the code

Changed files
+4 -4
lib
+4 -4
lib/bskyToucher.php
···
if ($params) {
$query = array_merge($query, $params);
}
-
$ret = await($this->makeRequest("GET", $this->slingshotBase."com.atproto.repo.getRecord", $query));
-
-
if ($ret && $ret->getReasonPhrase() === 'OK') {
-
+
try {
+
$ret = await($this->makeRequest("GET", $this->slingshotBase."com.atproto.repo.getRecord", $query));
return json_decode($ret->getBody());
+
} catch (Exception $e) {
+
print_r($e);
}
return false;