public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs)
 {
     // Messages _from_ the user
     $msgMap = Message::listGet('from_profile', array($uas->getUser()->id));
     $messages = $msgMap[$uas->getUser()->id];
     if (!empty($uas->after)) {
         $messages = array_filter($messages, array($uas, 'createdAfter'));
     }
     foreach ($messages as $message) {
         $objs[] = clone $message;
     }
     // Messages _to_ the user
     $msgMap = Message::listGet('to_profile', array($uas->getUser()->id));
     $messages = $msgMap[$uas->getUser()->id];
     if (!empty($uas->after)) {
         $messages = array_filter($messages, array($uas, 'createdAfter'));
     }
     foreach ($messages as $message) {
         $objs[] = clone $message;
     }
     return true;
 }
 public function onAppendUserActivityStreamObjects(UserActivityStream $uas, array &$objs)
 {
     $fave = new Fave();
     $fave->user_id = $uas->getUser()->id;
     if (!empty($uas->after)) {
         $fave->whereAdd("modified > '" . common_sql_date($uas->after) . "'");
     }
     if ($fave->find()) {
         while ($fave->fetch()) {
             $objs[] = clone $fave;
         }
     }
     return true;
 }