Page MenuHomePhabricator

D20222.id48273.diff
No OneTemporary

D20222.id48273.diff

diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php
--- a/src/applications/diffusion/controller/DiffusionBrowseController.php
+++ b/src/applications/diffusion/controller/DiffusionBrowseController.php
@@ -709,8 +709,17 @@
'path' => $path,
));
- $before_uri = $before_uri->alter('renamed', $renamed);
- $before_uri = $before_uri->alter('follow', $follow);
+ if ($renamed === null) {
+ $before_uri->removeQueryParam('renamed');
+ } else {
+ $before_uri->replaceQueryParam('renamed', $renamed);
+ }
+
+ if ($follow === null) {
+ $before_uri->removeQueryParam('follow');
+ } else {
+ $before_uri->replaceQueryParam('follow', $follow);
+ }
return id(new AphrontRedirectResponse())->setURI($before_uri);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 7, 12:50 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332611
Default Alt Text
D20222.id48273.diff (876 B)

Event Timeline