public function actionIsfavorit()
 {
     $post = Yii::$app->request->post();
     $response = [];
     if (!Yii::$app->user->isGuest) {
         $response['success'] = Photo::checkFavoritPhoto($post['photo_id'], Yii::$app->user->getId());
     }
     echo json_encode($response);
 }