From 623d809cc33e4ac92516b821cc99f13fe40f8bd9 Mon Sep 17 00:00:00 2001 From: gerhard6380 Date: Wed, 9 Nov 2016 21:35:52 +0100 Subject: [PATCH] changes in api call for showing profiles and disable proxy for images in html code for api calls --- include/api.php | 24 ++++++++++++------------ mod/proxy.php | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/api.php b/include/api.php index b93f8cf72..8ef0d9bce 100644 --- a/include/api.php +++ b/include/api.php @@ -2447,18 +2447,18 @@ 'religion' => $profile['religion'], 'public_keywords' => $profile['pub_keywords'], 'private_keywords' => $profile['prv_keywords'], - 'likes' => bbcode(api_clean_plain_items($profile['likes']), false, false, 2, true), - 'dislikes' => bbcode(api_clean_plain_items($profile['dislikes']), false, false, 2, true), - 'about' => bbcode(api_clean_plain_items($profile['about']), false, false, 2, true), - 'music' => bbcode(api_clean_plain_items($profile['music']), false, false, 2, true), - 'book' => bbcode(api_clean_plain_items($profile['book']), false, false, 2, true), - 'tv' => bbcode(api_clean_plain_items($profile['tv']), false, false, 2, true), - 'film' => bbcode(api_clean_plain_items($profile['film']), false, false, 2, true), - 'interest' => bbcode(api_clean_plain_items($profile['interest']), false, false, 2, true), - 'romance' => bbcode(api_clean_plain_items($profile['romance']), false, false, 2, true), - 'work' => bbcode(api_clean_plain_items($profile['work']), false, false, 2, true), - 'education' => bbcode(api_clean_plain_items($profile['education']), false, false, 2, true), - 'social_networks' => bbcode(api_clean_plain_items($profile['contact']), false, false, 2, true), + 'likes' => bbcode(api_clean_plain_items($profile['likes']), false, false, 2, false), + 'dislikes' => bbcode(api_clean_plain_items($profile['dislikes']), false, false, 2, false), + 'about' => bbcode(api_clean_plain_items($profile['about']), false, false, 2, false), + 'music' => bbcode(api_clean_plain_items($profile['music']), false, false, 2, false), + 'book' => bbcode(api_clean_plain_items($profile['book']), false, false, 2, false), + 'tv' => bbcode(api_clean_plain_items($profile['tv']), false, false, 2, false), + 'film' => bbcode(api_clean_plain_items($profile['film']), false, false, 2, false), + 'interest' => bbcode(api_clean_plain_items($profile['interest']), false, false, 2, false), + 'romance' => bbcode(api_clean_plain_items($profile['romance']), false, false, 2, false), + 'work' => bbcode(api_clean_plain_items($profile['work']), false, false, 2, false), + 'education' => bbcode(api_clean_plain_items($profile['education']), false, false, 2, false), + 'social_networks' => bbcode(api_clean_plain_items($profile['contact']), false, false, 2, false), 'homepage' => $profile['homepage'], 'users' => null); return $profile; diff --git a/mod/proxy.php b/mod/proxy.php index abcaf4912..2cc798cdc 100644 --- a/mod/proxy.php +++ b/mod/proxy.php @@ -248,7 +248,7 @@ function proxy_url($url, $writemode = false, $size = "") { return($url); } - if (get_config("system", "proxy_disabled")) + if (get_config("system", "proxy_disabled") || $a->module == "api") return($url); // Creating a sub directory to reduce the amount of files in the cache directory