]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/api.php
global search and replace for laconica -> statusnet
[quix0rs-gnu-social.git] / actions / api.php
index 897e848c119b1387620d6c581549bb7fd99b4f06..91f30e87abac9f919f180336c5f162ae1f2d6762 100644 (file)
@@ -125,9 +125,9 @@ class ApiAction extends Action
                                 'users/show',
                                 'help/test',
                                 'help/downtime_schedule',
-                                'laconica/version',
-                                'laconica/config',
-                                'laconica/wadl',
+                                'statusnet/version',
+                                'statusnet/config',
+                                'statusnet/wadl',
                                 'tags/timeline',
                                 'oembed/oembed',
                                 'groups/show',
@@ -147,11 +147,11 @@ class ApiAction extends Action
 
         $fullname = "$this->api_action/$this->api_method";
 
-        // If the site is "private", all API methods except laconica/config
+        // If the site is "private", all API methods except statusnet/config
         // need authentication
 
         if (common_config('site', 'private')) {
-            return $fullname != 'laconica/config' || false;
+            return $fullname != 'statusnet/config' || false;
         }
 
         // bareauth: only needs auth if without an argument or query param specifying user