show rel=edit links in notices for authenticated users
This commit is contained in:
		@@ -1613,6 +1613,20 @@ class Notice extends Memcached_DataObject
 | 
				
			|||||||
            Event::handle('EndActivityGeo', array(&$this, &$xs, $lat, $lon));
 | 
					            Event::handle('EndActivityGeo', array(&$this, &$xs, $lat, $lon));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // @fixme check this logic
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ($this->isLocal() && !empty($cur) && $cur->id == $this->profile_id) {
 | 
				
			||||||
 | 
					            $relEditUrl = common_local_url('ApiStatusesShow', array('id' => $this->id,
 | 
				
			||||||
 | 
					                                                                    'format' => 'atom'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (Event::handle('StartActivityRelEdit', array(&$this, &$xs, &$relEditUrl))) {
 | 
				
			||||||
 | 
					                $xs->element('link', array('rel' => 'edit',
 | 
				
			||||||
 | 
					                                           'type' => 'application/atom+xml',
 | 
				
			||||||
 | 
					                                           'href' => $relEditUrl));
 | 
				
			||||||
 | 
					                Event::handle('EndActivityRelEdit', array(&$this, &$xs, $relEditUrl));
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (Event::handle('StartActivityEnd', array(&$this, &$xs))) {
 | 
					        if (Event::handle('StartActivityEnd', array(&$this, &$xs))) {
 | 
				
			||||||
            $xs->elementEnd('entry');
 | 
					            $xs->elementEnd('entry');
 | 
				
			||||||
            Event::handle('EndActivityEnd', array(&$this, &$xs));
 | 
					            Event::handle('EndActivityEnd', array(&$this, &$xs));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user