From: Evan Prodromou Date: Wed, 1 Sep 2010 21:10:29 +0000 (-0400) Subject: Correctly check for user's id in replies in user salmon post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=27626c3abfeeb62ded71c0fa703238835b38015a;p=quix0rs-gnu-social.git Correctly check for user's id in replies in user salmon post --- diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php index 54715cd657..06a72bf024 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)) {