X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FFavorite%2Flib%2Ffavcommand.php;h=6c7d0d1946ae1c09c4418ebcabc228937ad1f268;hb=82f9b6908cc12b7f46fac2f7e0471febdb789187;hp=cf5ca79218ed293377555b7213ea2d92c37748a7;hpb=660e8c6efcee8278aee23f378cb9eab426837ec7;p=quix0rs-gnu-social.git diff --git a/plugins/Favorite/lib/favcommand.php b/plugins/Favorite/lib/favcommand.php index cf5ca79218..6c7d0d1946 100644 --- a/plugins/Favorite/lib/favcommand.php +++ b/plugins/Favorite/lib/favcommand.php @@ -14,17 +14,6 @@ class FavCommand extends Command { $notice = $this->getNotice($this->other); - $fave = new Fave(); - $fave->user_id = $this->user->id; - $fave->notice_id = $notice->id; - $fave->find(); - - if ($fave->fetch()) { - // TRANS: Error message text shown when a favorite could not be set because it has already been favorited. - $channel->error($this->user, _('Could not create favorite: Already favorited.')); - return; - } - try { $fave = Fave::addNew($this->user->getProfile(), $notice); } catch (Exception $e) {