]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/unqueuemanager.php
Merge branch '0.9.x' into facebook-app-plugin
[quix0rs-gnu-social.git] / lib / unqueuemanager.php
index 6cfe5bcbd31e9c7d518f6f8929a76be52583e6ab..72dbc4eede6807034334f2243af32e7fa471452f 100644 (file)
@@ -48,17 +48,6 @@ class UnQueueManager
                 jabber_public_notice($notice);
             }
             break;
-         case 'twitter':
-            if ($this->_isLocal($notice)) {
-                broadcast_twitter($notice);
-            }
-            break;
-         case 'facebook':
-            if ($this->_isLocal($notice)) {
-                require_once INSTALLDIR . '/lib/facebookutil.php';
-                return facebookBroadcastNotice($notice);
-            }
-            break;
          case 'ping':
             if ($this->_isLocal($notice)) {
                 require_once INSTALLDIR . '/lib/ping.php';
@@ -77,7 +66,7 @@ class UnQueueManager
             break;
          default:
             if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
-                throw ServerException("UnQueueManager: Unknown queue: $queue");
+                throw new ServerException("UnQueueManager: Unknown queue: $queue");
             }
         }
     }