mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
This commit is contained in:
parent
72c24efe5b
commit
19b2c8d833
9 changed files with 14 additions and 16 deletions
|
@ -13,7 +13,6 @@ use Friendica\Core\Renderer;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Protocol\Activity;
|
||||
|
||||
function mailstream_install() {
|
||||
|
@ -169,7 +168,7 @@ function mailstream_do_images($a, &$item, &$attachments) {
|
|||
continue;
|
||||
}
|
||||
$cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-');
|
||||
$curlResult = DI::httpRequest()->fetchUrlFull($url, true, 0, '', $cookiejar);
|
||||
$curlResult = DI::httpRequest()->fetchFull($url, true, 0, '', $cookiejar);
|
||||
$attachments[$url] = [
|
||||
'data' => $curlResult->getBody(),
|
||||
'guid' => hash("crc32", $url),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue