diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2009-11-19 21:24:49 +0100 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2009-11-19 21:24:49 +0100 |
commit | 93f6981b71c5fe4445352ca83a01a964fca9f078 (patch) | |
tree | e6c2205d84906be758402df85394a7e361f27d11 /actions/newnotice.php | |
parent | 69af084bcbd6a6ac3dcd842a3dff79169137b8db (diff) | |
parent | 62b66d12d697e62039fa04525c33328a7d31f31c (diff) |
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index fbd7ab6bc..dd6da0b01 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -164,6 +164,11 @@ class NewnoticeAction extends Action $replyto = 'false'; } + $lat = $this->trimmed('lat'); + $lon = $this->trimmed('lon'); + $location_id = $this->trimmed('location_id'); + $location_ns = $this->trimmed('location_ns'); + $upload = null; $upload = MediaFile::fromUpload('attach'); @@ -183,7 +188,9 @@ class NewnoticeAction extends Action } $notice = Notice::saveNew($user->id, $content_shortened, 'web', 1, - ($replyto == 'false') ? null : $replyto); + ($replyto == 'false') ? null : $replyto, + null, null, + $lat, $lon, $location_id, $location_ns); if (isset($upload)) { $upload->attachToNotice($notice); |