mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Support for cleared boot.php
This commit is contained in:
parent
95622a0f0d
commit
6a349e7fd9
15 changed files with 38 additions and 25 deletions
|
@ -85,6 +85,7 @@ use Friendica\Model\Tag;
|
|||
use Friendica\Model\User;
|
||||
use Friendica\Protocol\Activity;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Images;
|
||||
use Friendica\Util\Strings;
|
||||
|
@ -734,7 +735,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
|
||||
$img_str = DI::httpClient()->fetch($image['url']);
|
||||
|
||||
$tempfile = tempnam(get_temppath(), 'cache');
|
||||
$tempfile = tempnam(System::getTempPath(), 'cache');
|
||||
file_put_contents($tempfile, $img_str);
|
||||
|
||||
Logger::info('Uploading', ['id' => $b['id'], 'image' => $image['url']]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue