]> git.mxchange.org Git - friendica.git/commitdiff
Complete oStatus conversations: Changed from file_get_contents to fetch_url
authorMichael Vogel <icarus@dabo.de>
Thu, 27 Jun 2013 20:27:59 +0000 (22:27 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 27 Jun 2013 20:27:59 +0000 (22:27 +0200)
include/ostatus_conversation.php

index 480506a06d20bbbc4718badf7003118d249958b6..1185c01f95a1128e4affb30c3e1f6948b2efbf89 100644 (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);