]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Correctly check for user's id in replies in user salmon post
authorEvan Prodromou <evan@status.net>
Wed, 1 Sep 2010 21:10:29 +0000 (17:10 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 1 Sep 2010 21:10:29 +0000 (17:10 -0400)
plugins/OStatus/actions/usersalmon.php

index 54715cd6575a8a681c3a971157658d23631da0ee..06a72bf0244331be868a790eb38b6bd3f7697ae3 100644 (file)
@@ -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)) {