]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/userprofile.php
use return-to method for UserProfile widget
[quix0rs-gnu-social.git] / lib / userprofile.php
index dedac5bf1bfd2188d8819cc4a38764be1d7c997b..ee205af85df86284feb3286398971bf744547aea 100644 (file)
@@ -285,8 +285,11 @@ class UserProfile extends Widget
 
                         // return-to args, so we don't have to keep re-writing them
 
-                        $r2args = array('action' => 'showstream',
-                                        'nickname' => $this->profile->nickname);
+                        list($action, $r2args) = $this->out->returnToArgs();
+
+                        // push the action into the list
+
+                        $r2args['action'] = $action;
 
                         // block/unblock