Page MenuHomePhabricator

D20222.diff
No OneTemporary

D20222.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
Wed, May 22, 1:38 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6284920
Default Alt Text
D20222.diff (876 B)

Event Timeline