]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)
authorZach Copley <zach@controlyourself.ca>
Thu, 25 Jun 2009 20:51:29 +0000 (13:51 -0700)
committerZach Copley <zach@controlyourself.ca>
Thu, 25 Jun 2009 20:51:29 +0000 (13:51 -0700)
actions/newnotice.php

index 3677f54c294b903039a996a31d0510faf609e625..15caff6eaab0042783314c8cc1e6d80e7f9977cc 100644 (file)
@@ -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)));
     }
 
     /**