]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/Shorturl_api.php
change Controlez-Vous to Control Yourself
[quix0rs-gnu-social.git] / lib / Shorturl_api.php
index fe106cb8376a06b69ac5ba142329917b808a4427..292ce5b8ed5d80a01b05bedca249b87b6289d779 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, Controlez-Vous, Inc.
+ * Copyright (C) 2008, Control Yourself, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -22,6 +22,7 @@ if (!defined('LACONICA')) { exit(1); }
 class ShortUrlApi
 {
     protected $service_url;
+    protected $long_limit = 27;
 
     function __construct($service_url)
     {
@@ -39,7 +40,7 @@ class ShortUrlApi
     }
 
     private function is_long($url) {
-        return strlen($url) >= 30;
+        return strlen($url) >= $this->long_limit;
     }
 
     protected function http_post($data) {