summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-25 14:02:41 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-25 14:02:41 -0700
commitb53b6b8769d5531c16ba58d4560119bcee8b39ff (patch)
tree69524e7f95d68fde05ffa91cf9d4106f37682e5a /actions
parenta7cdf32df541bf73a47f1255b3e9f0a22c4724b4 (diff)
parente268cb5fd1a81835180a0f6190b7929d03ce42d7 (diff)
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 3677f54c2..15caff6ea 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)));
}
/**