]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/favor.php
Repeated and Favorited CSS/mf2 fixes
[quix0rs-gnu-social.git] / actions / favor.php
index 05c95c5794b373bdd099b5162d4817dccd089233..8c19f9da5c6a29c9327b334ccaf159ae0450c74e 100644 (file)
@@ -5,7 +5,7 @@
  * PHP version 5
  *
  * @category Action
- * @package  GNUSocial
+ * @package  GNUsocial
  * @author   Evan Prodromou <evan@status.net>
  * @author   Robin Millette <millette@status.net>
  * @author   Mikael Nordfeldth <mmn@hethane.se>
@@ -37,7 +37,7 @@ require_once INSTALLDIR.'/lib/mail.php';
  * FavorAction class.
  *
  * @category Action
- * @package  GNUSocial
+ * @package  GNUsocial
  * @author   Evan Prodromou <evan@status.net>
  * @author   Robin Millette <millette@status.net>
  * @author   Mikael Nordfeldth <mmn@hethane.se>
@@ -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()
     {
@@ -85,7 +76,7 @@ class FavorAction extends FormAction
             $disfavor = new DisFavorForm($this, $notice);
             $disfavor->show();
             $this->elementEnd('body');
-            $this->elementEnd('html');
+            $this->endHTML();
             exit;
         }
         common_redirect(common_local_url('showfavorites',