]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletenotice.php
More RESTish URL (/notice/:notice/delete) for notice delete
[quix0rs-gnu-social.git] / actions / deletenotice.php
index d8037ab4443fbcfaf1b45f3ace961726ac6bb5ec..40b276a34895e664c2801fc4b741a876ae378360 100644 (file)
@@ -68,16 +68,10 @@ class DeletenoticeAction extends FormAction
                 $this->notice->delete();
                 Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice));
             }
-        }
-
-        $url = common_get_returnto();
-
-        if ($url) {
-            common_set_returnto(null);
         } else {
-            $url = common_local_url('public');
+            common_redirect(common_get_returnto(), 303);
         }
 
-        common_redirect($url, 303);
+        common_redirect(common_local_url('top'), 303);
     }
 }