]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Fave.php
Consistently send Profiles into Fave::addNew()
[quix0rs-gnu-social.git] / classes / Fave.php
index a04f15e9c4e63cb1ddc0a0dc606eaa00dc355ccc..7ca9ade7f04b846c53982c8507fce5293436d793 100644 (file)
@@ -21,7 +21,15 @@ class Fave extends Memcached_DataObject
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
 
-    static function addNew($profile, $notice) {
+    /**
+     * Save a favorite record.
+     * @fixme post-author notification should be moved here
+     *
+     * @param Profile $profile the local or remote user who likes
+     * @param Notice $notice the notice that is liked
+     * @return mixed false on failure, or Fave record on success
+     */
+    static function addNew(Profile $profile, Notice $notice) {
 
         $fave = null;