The favorite activity is an activity.
This commit is contained in:
parent
636d5141e9
commit
9827e6ad84
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user