The favorite activity is an activity.

This commit is contained in:
Mikael Nordfeldth 2015-02-03 16:53:51 +01:00
parent 636d5141e9
commit 9827e6ad84

View File

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