forked from GNUsocial/gnu-social
Add site-wide option to change the length at which URLs are auto-shortened
This commit is contained in:
@@ -39,7 +39,7 @@ class ShortUrlApi
|
||||
}
|
||||
|
||||
private function is_long($url) {
|
||||
return strlen($url) >= 30;
|
||||
return strlen($url) >= common_config('site', 'shorturllength');
|
||||
}
|
||||
|
||||
protected function http_post($data) {
|
||||
|
||||
Reference in New Issue
Block a user