aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-02 20:08:40 -0700
committerFriendika <info@friendika.com>2011-08-02 20:08:40 -0700
commit6bf800c6c8ea90d86cadb58b862ecddcf40e7b2a (patch)
treef354c74251ece3f039f2ddaa056959a40316c364
parent1aaded10b405b3ba00fdd2e5cf809bdab01bf132 (diff)
downloadvolse-hubzilla-6bf800c6c8ea90d86cadb58b862ecddcf40e7b2a.tar.gz
volse-hubzilla-6bf800c6c8ea90d86cadb58b862ecddcf40e7b2a.tar.bz2
volse-hubzilla-6bf800c6c8ea90d86cadb58b862ecddcf40e7b2a.zip
Provide a way to lie about textlimit as far as API is concerned.
-rw-r--r--include/api.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index 082da55b3..8644c839c 100644
--- a/include/api.php
+++ b/include/api.php
@@ -775,6 +775,8 @@
$closed = (($a->config['register_policy'] == REGISTER_CLOSED) ? 'true' : 'false');
$private = (($a->config['system']['block_public']) ? 'true' : 'false');
$textlimit = (string) (($a->config['max_import_size']) ? $a->config['max_import_size'] : 200000);
+ if($a->config['api_import_size'])
+ $texlimit = string($a->config['api_import_size']);
$ssl = (($a->config['system']['have_ssl']) ? 'true' : 'false');
$sslserver = (($ssl === 'true') ? str_replace('http:','https:',$a->get_baseurl()) : '');