]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Try additional $_SERVER properties to get relative path of Friendica
[friendica.git] / include / items.php
index cfd792e2dabe35800fcf4f6848ed15d3995e8461..27a7db767b4d16c6ee8a8a8a57abc02507524a27 100644 (file)
@@ -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);