]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.7.x' into 0.8.x
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 8 Jun 2009 18:55:32 +0000 (11:55 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 8 Jun 2009 18:55:32 +0000 (11:55 -0700)
Conflicts:
classes/Notice.php
classes/Profile.php
lib/common.php
lib/util.php
scripts/getvaliddaemons.php
scripts/stopdaemons.sh

1  2 
README
actions/shownotice.php
classes/Notice.php
classes/Profile.php
classes/User.php
classes/User_group.php
db/notice_source.sql
lib/util.php
scripts/getvaliddaemons.php

diff --cc README
Simple merge
Simple merge
Simple merge
index afc0ea4f74557b29824ef266a54be6fd59d81202,3d13cd46af0146f946457200656e6c529a6efef9..4a459b9740e4055b5a62c9349ba689b9dc9598fd
@@@ -170,7 -159,7 +170,7 @@@ class Profile extends Memcached_DataObj
          $ids = Notice::stream(array($this, '_streamDirect'),
                                array(),
                                'profile:notice_ids:' . $this->id,
-                               $offset, $limit, $since_id, $before_id, $since);
 -                              $offset, $limit, $since_id, $max_id);
++                              $offset, $limit, $since_id, $max_id, $since);
  
          return Notice::getStreamByIds($ids);
      }
Simple merge
index 7cc31e7026d0aeb693d481c1a7c820b3807f17dc,a135015baca3a1f2d67601ebb9ae6f03d4c5dd0f..a135015baca3a1f2d67601ebb9ae6f03d4c5dd0f
mode 100644,100755..100644
Simple merge
diff --cc lib/util.php
index ab12723098b1b706354257b9f9b4ceba925f15ec,22308f432c79324f0aa71586c7ce86ee891d2de8..9872d97c4895f8f66cbae97ae4bf565cf817623d
@@@ -900,6 -892,34 +900,34 @@@ function common_enqueue_notice($notice
      return $result;
  }
  
+ function common_post_inbox_transports()
+ {
+     $transports = array('omb', 'sms');
+     if (common_config('xmpp', 'enabled')) {
+         $transports = array_merge($transports, array('jabber', 'public'));
+     }
+     return $transports;
+ }
+ function common_enqueue_notice_transport($notice, $transport)
+ {
+     $qi = new Queue_item();
+     $qi->notice_id = $notice->id;
+     $qi->transport = $transport;
+     $qi->created = $notice->created;
+     $result = $qi->insert();
+     if (!$result) {
+         $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
+         common_log(LOG_ERR, 'DB error inserting queue item: ' . $last_error->message);
+         throw new ServerException('DB error inserting queue item: ' . $last_error->message);
++>>>>>>> 0.7.x:lib/util.php
+     }
+     common_log(LOG_DEBUG, 'complete queueing notice ID = ' . $notice->id . ' for ' . $transport);
+     return true;
+ }
  function common_real_broadcast($notice, $remote=false)
  {
      $success = true;
Simple merge