]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
The favorite activity is an activity.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Feb 2015 15:53:51 +0000 (16:53 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Feb 2015 15:53:51 +0000 (16:53 +0100)
plugins/Favorite/classes/Fave.php

index 916620a34c929d1abd478e9481309ca7e8d0fee0..68c36dfaef5b6710ccbf2771f3aa612a498aba5c 100644 (file)
@@ -49,6 +49,7 @@ class Fave extends Managed_DataObject
      */
     static function addNew(Profile $actor, Notice $target) {
         $act = new Activity();
+        $act->type    = ActivityObject::ACTIVITY;
         $act->verb    = ActivityVerb::FAVORITE;
         $act->time    = time();
         $act->id      = self::newUri($actor, $target, common_sql_date($act->time));