Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 1.0.x

This commit is contained in:
Brion Vibber
2010-03-24 14:11:01 -07:00
95 changed files with 4013 additions and 2152 deletions

View File

@@ -63,7 +63,8 @@ class Conversation extends Memcached_DataObject
}
$orig = clone($conv);
$orig->uri = common_local_url('conversation', array('id' => $id));
$orig->uri = common_local_url('conversation', array('id' => $id),
null, null, false);
$result = $orig->update($conv);
if (empty($result)) {

View File

@@ -21,7 +21,15 @@ class Fave extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
static function addNew($profile, $notice) {
/**
* Save a favorite record.
* @fixme post-author notification should be moved here
*
* @param Profile $profile the local or remote user who likes
* @param Notice $notice the notice that is liked
* @return mixed false on failure, or Fave record on success
*/
static function addNew(Profile $profile, Notice $notice) {
$fave = null;

View File

@@ -421,7 +421,9 @@ class Notice extends Memcached_DataObject
}
$profile = Profile::staticGet($this->profile_id);
$profile->blowNoticeCount();
if (!empty($profile)) {
$profile->blowNoticeCount();
}
}
/**