diff options
author | Evan Prodromou <evan@status.net> | 2009-12-11 11:29:51 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-11 11:29:51 -0500 |
commit | 79f81ad76d413908c097c121912eff233aebc483 (patch) | |
tree | ef94cd25d824b90a8b3b46c2b0c9b76d1ca7153a /plugins | |
parent | 85473ecf94e92cd0e6503e4d27ea26452076aafd (diff) |
change Notice::saveNew() to use named arguments for little-used options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Facebook/facebookaction.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Facebook/facebookaction.php b/plugins/Facebook/facebookaction.php index 705bb2780..24bf215fd 100644 --- a/plugins/Facebook/facebookaction.php +++ b/plugins/Facebook/facebookaction.php @@ -445,8 +445,9 @@ class FacebookAction extends Action $replyto = $this->trimmed('inreplyto'); try { - $notice = Notice::saveNew($user->id, $content, - 'web', 1, ($replyto == 'false') ? null : $replyto); + $notice = Notice::saveNew($user->id, $content, 'web', + array('reply_to' => ($replyto == 'false') ? null : $replyto)); + } catch (Exception $e) { $this->showPage($e->getMessage()); return; |