Complete oStatus conversations: Changed from file_get_contents to fetch_url
This commit is contained in:
parent
9bbf60ac9b
commit
edf8bde581
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user