]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
newnotice action always returns the notice's URL
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 11:13:34 +0000 (12:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Jan 2015 11:13:34 +0000 (12:13 +0100)
Maybe could return conversation URL, but this will do for now.
Courtesy of the Javascript haters.

actions/newnotice.php

index a2e1aa24b24346b0dc7f1de185a1d79cdf61ebcb..ca770f38b67a4a418e0d0f70de2646684640dbed 100644 (file)
@@ -189,14 +189,7 @@ class NewnoticeAction extends FormAction
         Event::handle('EndSaveNewNoticeWeb', array($this, $user, &$content_shortened, &$options));
 
         if (!StatusNet::isAjax()) {
-            $returnto = $this->trimmed('returnto');
-
-            if ($returnto) {
-                $url = common_local_url($returnto,
-                                        array('nickname' => $this->scoped->getNickname()));
-            } else {
-                $url = common_local_url('shownotice', array('notice' => $this->stored->id));
-            }
+            $url = common_local_url('shownotice', array('notice' => $this->stored->id));
             common_redirect($url, 303);
         }