]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Returnto the previous page when deleting a notice.
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 8 Feb 2016 14:30:28 +0000 (15:30 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 8 Feb 2016 14:30:28 +0000 (15:30 +0100)
actions/deletenotice.php

index f0aa767916f551caaf6e44cbe3104b012124ef03..2dd0848aa575e30c17ca371faccebc7769bf2fd6 100644 (file)
@@ -68,10 +68,8 @@ class DeletenoticeAction extends FormAction
                 $this->notice->deleteAs($this->scoped);
                 Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice));
             }
-        } else {
-            common_redirect(common_get_returnto(), 303);
         }
 
-        common_redirect(common_local_url('top'), 303);
+        common_redirect(common_get_returnto(), 303);
     }
 }