]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
accept replyto for fancy newnotice URL
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 07:28:33 +0000 (03:28 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 07:28:33 +0000 (03:28 -0400)
darcs-hash:20080709072833-84dde-42c600c5facb073f502318cae389832bd2115927.gz

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':