summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-11 11:38:08 -0500
committerEvan Prodromou <evan@status.net>2009-12-11 11:38:08 -0500
commit60754fc6de8f73b3e74dbec30d91fffe11b094c6 (patch)
tree168dff88fe89417b22cd28efbde54b36b018407c /lib
parent81843f2acd5375a9072d091fd58c6a6af079295e (diff)
parent89256fa754c1e03b822b8eeac388cc822b3c58ca (diff)
Merge branch '0.9.x' into forward
Diffstat (limited to 'lib')
-rw-r--r--lib/command.php5
-rw-r--r--lib/oauthstore.php5
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);
}