From: Zach Copley Date: Thu, 25 Jun 2009 20:51:29 +0000 (-0700) Subject: FileAction redirections weren't being added (e.g.: /notice/$notice_id/file) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=03d31911e18f8ca0ba2f8425943b4c244114a066;p=quix0rs-gnu-social.git FileAction redirections weren't being added (e.g.: /notice/$notice_id/file) --- diff --git a/actions/newnotice.php b/actions/newnotice.php index 3677f54c29..15caff6eaa 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -326,6 +326,8 @@ class NewnoticeAction extends Action } $this->maybeAddRedir($file_id, $short); + + return $file; } function maybeAddRedir($file_id, $url) @@ -350,7 +352,8 @@ class NewnoticeAction extends Action { File_to_post::processNew($filerec->id, $notice->id); - $this->maybeAddRedir($filerec->id, common_local_url('file', array('notice' => $this->notice->id))); + $this->maybeAddRedir($filerec->id, + common_local_url('file', array('notice' => $notice->id))); } /**