forked from GNUsocial/gnu-social
Add site-wide option to change the length at which URLs are auto-shortened
This commit is contained in:
committed by
Zach Copley
parent
ccbc5c447d
commit
b416df9312
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user