]> git.mxchange.org Git - friendica.git/commitdiff
changes in api call for showing profiles and disable proxy for images in html code...
authorgerhard6380 <gerhard@seeber.at>
Wed, 9 Nov 2016 20:35:52 +0000 (21:35 +0100)
committergerhard6380 <gerhard@seeber.at>
Wed, 9 Nov 2016 20:35:52 +0000 (21:35 +0100)
include/api.php
mod/proxy.php

index b93f8cf72a32b0ce14dcabe9f1754b54f17431c1..8ef0d9bcea7efffe2bd9eed6bd149bd793910d5f 100644 (file)
                                                        '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;
index abcaf4912798830546409ef6d16876bea9f3db96..2cc798cdcad24de49b1cf4de494b595c61e046ad 100644 (file)
@@ -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