X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fitems.php;h=27a7db767b4d16c6ee8a8a8a57abc02507524a27;hb=ac1ff6c8ce9f23eebf5e53ce799c3b8b84d6de93;hp=cfd792e2dabe35800fcf4f6848ed15d3995e8461;hpb=d18421f7608e855bb0af5e81ed1b85d0a0553619;p=friendica.git diff --git a/include/items.php b/include/items.php index cfd792e2da..27a7db767b 100644 --- a/include/items.php +++ b/include/items.php @@ -316,9 +316,9 @@ function subscribe_to_hub($url, array $importer, array $contact, $hubmode = 'sub DBA::update('contact', ['hub-verify' => $verify_token], ['id' => $contact['id']]); } - Network::post($url, $params); + $postResult = Network::post($url, $params); - logger('subscribe_to_hub: returns: ' . $a->get_curl_code(), LOGGER_DEBUG); + logger('subscribe_to_hub: returns: ' . $postResult->getReturnCode(), LOGGER_DEBUG); return; @@ -407,7 +407,7 @@ function drop_item($id) // delete the item Item::deleteForUser(['id' => $item['id']], local_user()); - goaway('/item/drop/' . $id); + goaway('/network'); //NOTREACHED } else { notice(L10n::t('Permission denied.') . EOL);