mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
[global]: Proxy class has been introduced, need to fix these as well.
This commit is contained in:
parent
fc2a367dae
commit
265a2c498e
4 changed files with 12 additions and 12 deletions
|
@ -15,6 +15,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\ItemContent;
|
||||
use Friendica\Network\Proxy;
|
||||
|
||||
function buffer_install()
|
||||
{
|
||||
|
@ -363,14 +364,12 @@ function buffer_send(App $a, array &$b)
|
|||
logger("buffer_send: converted message ".$b["id"]." result: ".print_r($post, true), LOGGER_DEBUG);
|
||||
|
||||
// The image proxy is used as a sanitizer. Buffer seems to be really picky about pictures
|
||||
require_once "mod/proxy.php";
|
||||
|
||||
if (isset($post["image"])) {
|
||||
$post["image"] = proxy_url($post["image"]);
|
||||
$post["image"] = Proxy::proxifyUrl($post["image"]);
|
||||
}
|
||||
|
||||
if (isset($post["preview"])) {
|
||||
$post["preview"] = proxy_url($post["preview"]);
|
||||
$post["preview"] = Proxy::proxifyUrl($post["preview"]);
|
||||
}
|
||||
|
||||
// Seems like a bug to me
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue