X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2FShorturl_api.php;h=6402dbc099615918d7ee777330b61abfe3c8873b;hb=3bc55e7b8bff2fe331371333de9ff4f96c8584d2;hp=29f4eb3a66ff3eefbe989d9f07c51e815ac2487a;hpb=29bebdb50bf008a02e6c3e9530b3dff3bdd2b821;p=quix0rs-gnu-social.git diff --git a/lib/Shorturl_api.php b/lib/Shorturl_api.php index 29f4eb3a66..6402dbc099 100644 --- a/lib/Shorturl_api.php +++ b/lib/Shorturl_api.php @@ -1,7 +1,7 @@ . */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class ShortUrlApi { @@ -40,7 +40,7 @@ class ShortUrlApi } private function is_long($url) { - return strlen($url) >= $this->long_limit; + return strlen($url) >= common_config('site', 'shorturllength'); } protected function http_post($data) {