]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/apifavoritecreate.php
Merge branch 'master' of git.gnu.io:Quix0r/gnu-social
[quix0rs-gnu-social.git] / plugins / Favorite / actions / apifavoritecreate.php
index 7e63b199e2285a9fd77327816a40a2a7dbe0c51d..7ff8f391b2466309df4d109866c1e16df438cf49 100644 (file)
@@ -52,14 +52,19 @@ class ApiFavoriteCreateAction extends ApiAuthAction
 
     protected $needPost = true;
 
+    /**
+     * Take arguments for running
+     *
+     * @return boolean success flag
+     */
     protected function prepare(array $args=array())
     {
         parent::prepare($args);
 
         $this->notice = Notice::getKV($this->arg('id'));
         if (!empty($this->notice->repeat_of)) {
-                common_log(LOG_DEBUG, 'Trying to Fave '.$this->notice->id.', repeat of '.$this->notice->repeat_of);
-                common_log(LOG_DEBUG, 'Will Fave '.$this->notice->repeat_of.' instead');
+                common_debug('Trying to Fave '.$this->notice->id.', repeat of '.$this->notice->repeat_of);
+                common_debug('Will Fave '.$this->notice->repeat_of.' instead');
                 $real_notice_id = $this->notice->repeat_of;
                 $this->notice = Notice::getKV($real_notice_id);
         }
@@ -67,6 +72,13 @@ class ApiFavoriteCreateAction extends ApiAuthAction
         return true;
     }
 
+    /**
+     * Handle the request
+     *
+     * Check the format and show the user info
+     *
+     * @return void
+     */
     protected function handle()
     {
         parent::handle();