use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Model\ItemContent;
-use Friendica\Module\Proxy;
+use Friendica\Util\ProxyUtils;
function buffer_install()
{
// The image proxy is used as a sanitizer. Buffer seems to be really picky about pictures
if (isset($post["image"])) {
- $post["image"] = Proxy::proxifyUrl($post["image"]);
+ $post["image"] = ProxyUtils::proxifyUrl($post["image"]);
}
if (isset($post["preview"])) {
- $post["preview"] = Proxy::proxifyUrl($post["preview"]);
+ $post["preview"] = ProxyUtils::proxifyUrl($post["preview"]);
}
// Seems like a bug to me
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
-use Friendica\Module\Proxy;
use Friendica\Util\Network;
+use Friendica\Util\ProxyUtils;
function curweather_install()
{
$t = get_markup_template("widget.tpl", "addon/curweather/" );
$curweather = replace_macros ($t, [
'$title' => L10n::t("Current Weather"),
- '$icon' => Proxy::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
+ '$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
'$city' => $res['city'],
'$lon' => $res['lon'],
'$lat' => $res['lat'],
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
-use Friendica\Module\Proxy;
+use Friendica\Util\ProxyUtils;
function impressum_install() {
Addon::registerHook('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
return $s;
}
function impressum_footer($a, &$b) {
- $text = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum','footer_text')));
+ $text = ProxyUtils::proxifyHtml(BBCode::convert(Config::get('impressum','footer_text')));
if (! $text == '') {
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.$a->get_baseurl().'/addon/impressum/impressum.css" media="all" />';
$b .= '<h3>'.L10n::t('Impressum').'</h3>';
$owner = Config::get('impressum', 'owner');
$owner_profile = Config::get('impressum','ownerprofile');
- $postal = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum', 'postal')));
- $notes = Proxy::proxifyHtml(BBCode::convert(Config::get('impressum', 'notes')));
+ $postal = ProxyUtils::proxifyHtml(BBCode::convert(Config::get('impressum', 'postal')));
+ $notes = ProxyUtils::proxifyHtml(BBCode::convert(Config::get('impressum', 'notes')));
$email = obfuscate_email( Config::get('impressum','email') );
if (strlen($owner)) {
if (strlen($owner_profile)) {
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\Protocol;
-use Friendica\Module\Proxy;
use Friendica\Util\Network;
+use Friendica\Util\ProxyUtils;
function mastodoncustomemojis_install()
{
if (is_array($emojis_array)) {
foreach ($emojis_array as $emoji) {
$emojis['texts'][] = ':' . $emoji['shortcode'] . ':';
- $emojis['icons'][] = '<img class="emoji mastodon" src="' . Proxy::proxifyUrl($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
+ $emojis['icons'][] = '<img class="emoji mastodon" src="' . ProxyUtils::proxifyUrl($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
}
}