X-Git-Url: https://git.mxchange.org/?p=quix0rs-gnu-social.git;a=blobdiff_plain;f=plugins%2FFavorite%2Factions%2Fapifavoritecreate.php;fp=plugins%2FFavorite%2Factions%2Fapifavoritecreate.php;h=8a273740534c639b6f681a78cbd2677681b23c2f;hp=736bd7b0a19eaa720cf49040bd9255912f9c4afa;hb=26703076f66f77f337559416cc02101c532d7aa8;hpb=61992dd9a254e94a5299f73a8d697d9e2c67cddd diff --git a/plugins/Favorite/actions/apifavoritecreate.php b/plugins/Favorite/actions/apifavoritecreate.php index 736bd7b0a1..8a27374053 100644 --- a/plugins/Favorite/actions/apifavoritecreate.php +++ b/plugins/Favorite/actions/apifavoritecreate.php @@ -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();