forked from GNUsocial/gnu-social
		
	AttachmentAction is a ManagedAction, don't implement handle()
This also gives us more freedom in Attachment_thumbnailAction for example
This commit is contained in:
		@@ -92,21 +92,14 @@ class AttachmentAction extends ManagedAction
 | 
				
			|||||||
        return $a->title();
 | 
					        return $a->title();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    public function showPage()
 | 
				
			||||||
     * Handle input
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * Only handles get, so just show the page.
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return void
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    protected function handle()
 | 
					 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (empty($this->attachment->filename)) {
 | 
					        if (empty($this->attachment->filename)) {
 | 
				
			||||||
            // if it's not a local file, gtfo
 | 
					            // if it's not a local file, gtfo
 | 
				
			||||||
            common_redirect($this->attachment->url, 303);
 | 
					            common_redirect($this->attachment->url, 303);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        parent::handle();
 | 
					        parent::showPage();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user