X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Factions%2Fusersalmon.php;h=cd24dff3aca87f691e33d97ecc65f40784c593d9;hb=0eb5122817782b92695357406feb261b34c7bffd;hp=5d2a92d99b3d93da1d821fc8bfc9931d190f9122;hpb=d67254711264bbe82c80a9d2513a26f0ddf2c79d;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php index 5d2a92d99b..cd24dff3ac 100644 --- a/plugins/OStatus/actions/usersalmon.php +++ b/plugins/OStatus/actions/usersalmon.php @@ -71,30 +71,6 @@ class UsersalmonAction extends SalmonAction throw new ClientException(_m('Cannot handle that kind of post.')); } - // Notice must either be a) in reply to a notice by this user - // or b) in reply to a notice to the attention of this user - // or c) to the attention of this user - - $context = $this->activity->context; - $notice = false; - - if (!empty($context->replyToID)) { - $notice = Notice::getKV('uri', $context->replyToID); - } - - if ($notice instanceof Notice && - ($notice->profile_id == $this->target->id || - array_key_exists($this->target->id, $notice->getReplies()))) - { - // In reply to a notice either from or mentioning this user. - } elseif (!empty($context->attention) && - array_key_exists($this->target->getUri(), $context->attention)) { - // To the attention of this user. - } else { - // TRANS: Client exception. - throw new ClientException(_m('Not to anyone in reply to anything.')); - } - try { $this->saveNotice(); } catch (AlreadyFulfilledException $e) {