Merge branch 'master' into 0.9.x

This commit is contained in:
Evan Prodromou 2009-12-29 12:09:17 -08:00
commit 05e2b4d92d
2 changed files with 4 additions and 2 deletions

View File

@ -1129,7 +1129,7 @@ class Notice extends Memcached_DataObject
$xs->element('id', null, $this->uri);
$xs->element('published', null, common_date_w3dtf($this->created));
$xs->element('updated', null, common_date_w3dtf($this->modified));
$xs->element('updated', null, common_date_w3dtf($this->created));
if ($this->reply_to) {
$reply_notice = Notice::staticGet('id', $this->reply_to);

View File

@ -251,7 +251,9 @@ class UserFlagPlugin extends Plugin
function onEndBlockProfile($user, $profile)
{
if ($this->flagOnBlock) {
if ($this->flagOnBlock && !User_flag_profile::exists($profile->id,
$user->id)) {
User_flag_profile::create($user->id, $profile->id);
}
return true;