Complete oStatus conversations: Changed from file_get_contents to fetch_url

This commit is contained in:
Michael Vogel 2013-06-27 22:27:59 +02:00
parent 9bbf60ac9b
commit edf8bde581

View File

@ -81,7 +81,9 @@ function complete_conversation($itemid, $conversation_url, $only_add_conversatio
logger('complete_conversation: fetching conversation url '.$conv.' for '.$itemid);
do {
$conv_as = file_get_contents($conv."?page=".$pageno);
$conv_as = fetch_url($conv."?page=".$pageno);
//$conv_as = fetch_url($conv."?page=".$pageno, false, 0, 10);
//$conv_as = file_get_contents($conv."?page=".$pageno);
$conv_as = str_replace(',"statusnet:notice_info":', ',"statusnet_notice_info":', $conv_as);
$conv_as = json_decode($conv_as);