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

ok what's going on here

Changed files
+3 -3
lib
+1 -2
lib/bskyToucher.php
···
return $posts;
} catch (Exception $e) {
echo "<!--";
-
echo print_r($e);
+
print_r($e);
echo "-->";
return false;
}
···
$uriComponents = $this->splitAtUri($cache->at_uri);
$authorInfo = $this->getUserInfo($cache->creator_did, 'did');
if (!$authorInfo) return false;
-
print_r($authorInfo);
return (object) [
'title' => $cache->title,
'url' => '/f/'.$cache->creator_did.'/'.$uriComponents->rkey,
+2 -1
lib/maria-db.php
···
$db = mysqli_init();
$db->real_connect(DB_HOST, DB_USERNAME, DB_PASS);
$db->set_charset('utf8mb4');
-
print_r($db->character_set_name());
// check for existence of db
$db->real_query('create database if not exists '.DB_NAME.';');
···
$db->real_query('use '.DB_NAME.';');
$expires = strtotime('now') + 60*60*48;
if (requestMinidocCache($did, 'did')) {
+
$req = requestMinidocCache($did, 'did');
+
print_r($req);
$db->query('update minidoc_cache set handle="'.$db->real_escape_string($handle).'", pds="'.$db->real_escape_string($pds).'", expires='.$expires.' where did="'.$db->real_escape_string($did).'";');
}
$db->query('insert into minidoc_cache (handle, did, pds, expires) values("'.$db->real_escape_string($handle).'", "'.$db->real_escape_string($did).'", "'.$db->real_escape_string($pds).'", '.$expires.');');