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 /lib | |
parent | 85473ecf94e92cd0e6503e4d27ea26452076aafd (diff) |
change Notice::saveNew() to use named arguments for little-used options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/command.php | 5 | ||||
-rw-r--r-- | lib/oauthstore.php | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/command.php b/lib/command.php index 450db9da3..085331f82 100644 --- a/lib/command.php +++ b/lib/command.php @@ -433,8 +433,9 @@ class ReplyCommand extends Command return; } - $notice = Notice::saveNew($this->user->id, $this->text, $channel->source(), 1, - $notice->id); + $notice = Notice::saveNew($this->user->id, $this->text, $channel->source(), + array('reply_to' => $notice->id)); + if ($notice) { $channel->output($this->user, sprintf(_('Reply to %s sent'), $recipient->nickname)); } else { diff --git a/lib/oauthstore.php b/lib/oauthstore.php index e34bf8a5e..df63cc151 100644 --- a/lib/oauthstore.php +++ b/lib/oauthstore.php @@ -359,9 +359,8 @@ class StatusNetOAuthDataStore extends OAuthDataStore $notice = Notice::saveNew($author->id, $omb_notice->getContent(), 'omb', - false, - null, - $omb_notice->getIdentifierURI()); + array('is_local' => Notice::REMOTE_OMB, + 'uri' => $omb_notice->getIdentifierURI())); common_broadcast_notice($notice, true); } |