Merge branch 'master' into 0.9.x
This commit is contained in:
		@@ -1129,7 +1129,7 @@ class Notice extends Memcached_DataObject
 | 
				
			|||||||
        $xs->element('id', null, $this->uri);
 | 
					        $xs->element('id', null, $this->uri);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $xs->element('published', null, common_date_w3dtf($this->created));
 | 
					        $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) {
 | 
					        if ($this->reply_to) {
 | 
				
			||||||
            $reply_notice = Notice::staticGet('id', $this->reply_to);
 | 
					            $reply_notice = Notice::staticGet('id', $this->reply_to);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -251,7 +251,9 @@ class UserFlagPlugin extends Plugin
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    function onEndBlockProfile($user, $profile)
 | 
					    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);
 | 
					            User_flag_profile::create($user->id, $profile->id);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user