]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/grouprss.php
Fix fatal error on OMB subscription for first-timers
[quix0rs-gnu-social.git] / actions / grouprss.php
index 7cd85c1af1e8282b8712d6e94bc20d5094bfd401..50e48a67e9ea7121e462fdbcc5b2ef0a2063f9fe 100644 (file)
@@ -28,7 +28,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -76,11 +76,6 @@ class groupRssAction extends Rss10Action
     {
         parent::prepare($args);
 
-        if (!common_config('inboxes','enabled')) {
-            $this->serverError(_('Inboxes must be enabled for groups to work'));
-            return false;
-        }
-
         $nickname_arg = $this->arg('nickname');
         $nickname = common_canonical_nickname($nickname_arg);
 
@@ -104,6 +99,7 @@ class groupRssAction extends Rss10Action
             return false;
         }
 
+        $this->notices = $this->getNotices($this->limit);
         return true;
     }