]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.9.x' into 1.0.x
authorCraig Andrews <candrews@integralblue.com>
Tue, 2 Feb 2010 22:00:10 +0000 (17:00 -0500)
committerCraig Andrews <candrews@integralblue.com>
Tue, 2 Feb 2010 22:00:10 +0000 (17:00 -0500)
Conflicts:
EVENTS.txt
lib/imqueuehandler.php
lib/jabber.php
lib/util.php
plugins/Xmpp/Sharing_XMPP.php

1  2 
EVENTS.txt
actions/showstream.php
classes/User.php
classes/statusnet.ini
db/statusnet.sql
lib/util.php

diff --cc EVENTS.txt
index 45f1e9d70f6af104aec8ad2cece8f40753981133,6bf12bf13fb15db9ea94507971c635266db383ee..977e56b3b71e8078c147a4812a39fcb1a5af61ad
@@@ -700,20 -700,17 +700,34 @@@ StartShowContentLicense: Showing the de
  EndShowContentLicense: Showing the default license for content
  - $action: the current action
  
 -
 +GetImTransports: Get IM transports that are available
 +- &$transports: append your transport to this array like so: $transports[transportName]=array('display'=>display)
 +
 +NormalizeImScreenname: Normalize an IM screenname
 +- $transport: transport the screenname is on
 +- &$screenname: screenname to be normalized
 +
 +ValidateImScreenname: Validate an IM screenname
 +- $transport: transport the screenname is on
 +- $screenname: screenname to be validated
 +- $valid: is the screenname valid?
 +
 +SendImConfirmationCode: Send a confirmation code to confirm a user owns an IM screenname
 +- $transport: transport the screenname exists on
 +- $screenname: screenname being confirmed
 +- $code: confirmation code for confirmation URL
 +- $user: user requesting the confirmation
++
+ StartUserRegister: When a new user is being registered
+ - &$profile: new profile data (no ID)
+ - &$user: new user account (no ID or URI)
+ EndUserRegister: When a new user has been registered
+ - &$profile: new profile data
+ - &$user: new user account
+ StartRobotsTxt: Before outputting the robots.txt page
+ - &$action: RobotstxtAction being shown
+ EndRobotsTxt: After the default robots.txt page (good place for customization)
+ - &$action: RobotstxtAction being shown
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/util.php
index e60cb6765cbb8b713c5a6cdcc57ed5bf9b1fd907,9e8ac26add160575b8cab2d68a0e8af54c691dcc..9a24d268db7caccad26f1b7979f57a2f5511e006
@@@ -990,10 -989,22 +989,16 @@@ function common_enqueue_notice($notice
      static $localTransports = array('omb',
                                      'ping');
  
-     static $allTransports = array('sms', 'plugin');
-     $transports = $allTransports;
+     $transports = array();
+     if (common_config('sms', 'enabled')) {
+         $transports[] = 'sms';
+     }
+     if (Event::hasHandler('HandleQueuedNotice')) {
+         $transports[] = 'plugin';
+     }
+     
  
 -    $xmpp = common_config('xmpp', 'enabled');
 -
 -    if ($xmpp) {
 -        $transports[] = 'jabber';
 -    }
 -
+     // @fixme move these checks into QueueManager and/or individual handlers
      if ($notice->is_local == Notice::LOCAL_PUBLIC ||
          $notice->is_local == Notice::LOCAL_NONPUBLIC) {
          $transports = array_merge($transports, $localTransports);