]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
accept replyto for fancy newnotice URL
[quix0rs-gnu-social.git] / lib / util.php
index 36854eee9b49c868f91b95161f768147c4e0448e..1a83f0fffa9a140d058ab2643115c8be442088e9 100644 (file)
@@ -730,7 +730,11 @@ function common_fancy_url($action, $args=NULL) {
         case 'openidsettings':
                return common_path('settings/openid');
         case 'newnotice':
-               return common_path('notice/new');
+               if ($args && $args['replyto']) {
+                       return common_path('notice/new?replyto='.$args['replyto']);
+               } else {
+                       return common_path('notice/new');
+               }
         case 'shownotice':
                return common_path('notice/'.$args['notice']);
         case 'xrds':