From 7028c16d1c89c8e444b1958b1aabfb8af78c646b Mon Sep 17 00:00:00 2001
From: Mikael Nordfeldth <mmn@hethane.se>
Date: Mon, 5 May 2014 22:49:34 +0200
Subject: [PATCH] Cleaning up FavorAction

---
 actions/favor.php | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/actions/favor.php b/actions/favor.php
index 1ce0eb8947..8c19f9da5c 100644
--- a/actions/favor.php
+++ b/actions/favor.php
@@ -46,16 +46,7 @@ require_once INSTALLDIR.'/lib/mail.php';
  */
 class FavorAction extends FormAction
 {
-    // We overload this because success should redirect
-    public function showForm($msg=null, $success=false)
-    {
-        if ($success) {
-            common_redirect(common_local_url('showfavorites',
-                array('nickname' => $user->nickname)), 303);
-        }
-
-        parent::showForm($msg, $success);
-    }
+    protected $needPost = true;
 
     protected function handlePost()
     {
-- 
2.39.5