Commit 9827e6ad authored by mmn's avatar mmn

The favorite activity is an activity.

parent 636d5141
...@@ -49,6 +49,7 @@ class Fave extends Managed_DataObject ...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment