summaryrefslogtreecommitdiff
path: root/plugins/OStatus/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-01 17:10:29 -0400
committerEvan Prodromou <evan@status.net>2010-09-01 17:10:29 -0400
commit27626c3abfeeb62ded71c0fa703238835b38015a (patch)
treedf5454aa96375926d23e7c98c39fd902f331ae6a /plugins/OStatus/actions
parentab88123373ce5f17b9e09ed2372f587e607cba20 (diff)
Correctly check for user's id in replies in user salmon post
Diffstat (limited to 'plugins/OStatus/actions')
-rw-r--r--plugins/OStatus/actions/usersalmon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php
index 54715cd65..06a72bf02 100644
--- a/plugins/OStatus/actions/usersalmon.php
+++ b/plugins/OStatus/actions/usersalmon.php
@@ -81,7 +81,7 @@ class UsersalmonAction extends SalmonAction
throw new ClientException("In reply to unknown notice");
}
if ($notice->profile_id != $this->user->id &&
- !in_array($notice->getReplies(), $this->user->id)) {
+ !in_array($this->user->id, $notice->getReplies())) {
throw new ClientException("In reply to a notice not by this user and not mentioning this user");
}
} else if (!empty($context->attention)) {