]> git.mxchange.org Git - friendica-addons.git/blobdiff - ljpost/ljpost.php
Network was moved to src
[friendica-addons.git] / ljpost / ljpost.php
index a8c40a75c0c6e29091827ab22605da899168f3e2..7ab748ea5e2cb017d029d5d0245f1dc5a57246eb 100644 (file)
@@ -10,6 +10,7 @@
 use Friendica\Core\Addon;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
+use Friendica\Util\Network;
 
 function ljpost_install() {
     Addon::registerHook('post_local',           'addon/ljpost/ljpost.php', 'ljpost_post_local');
@@ -233,10 +234,10 @@ EOT;
 
                logger('ljpost: data: ' . $xml, LOGGER_DATA);
 
-               if($lj_blog !== 'test')
-                       $x = post_url($lj_blog,$xml,["Content-Type: text/xml"]);
+               if ($lj_blog !== 'test') {
+                       $x = Network::postURL($lj_blog, $xml, ["Content-Type: text/xml"]);
+               }
                logger('posted to livejournal: ' . ($x) ? $x : '', LOGGER_DEBUG);
-
        }
 }