// Only do this for public postings to avoid privacy problems, since poco data is public.
// Don't set this value if it isn't from the owner (could be an author that we don't know)
if (!$arr['private'] AND (($arr["author-link"] === $arr["owner-link"]) OR ($arr["parent-uri"] === $arr["uri"])))
- $r = q("UPDATE `contact` SET `success_update` = '%s' WHERE `id` = %d",
+ q("UPDATE `contact` SET `success_update` = '%s' WHERE `id` = %d",
dbesc($arr['received']),
intval($arr['contact-id'])
);
return($siteinfo);
}
+ if ($do_oembed) {
+ require_once("include/oembed.php");
+
+ $oembed_data = oembed_fetch_url($url);
+
+ if ($oembed_data->type != "error")
+ $siteinfo["type"] = $oembed_data->type;
+ }
+
// if the file is too large then exit
if ($curl_info["download_content_length"] > 1000000)
return($siteinfo);
$http_code = $curl_info['http_code'];
curl_close($ch);
- if ($do_oembed) {
- require_once("include/oembed.php");
-
- $oembed_data = oembed_fetch_url($url);
-
- if ($oembed_data->type != "error")
- $siteinfo["type"] = $oembed_data->type;
- }
-
// Fetch the first mentioned charset. Can be in body or header
$charset = "";
if (preg_match('/charset=(.*?)['."'".'"\s\n]/', $header, $matches))