コード例 #1
0
 public function activityObjectOutputJson(ActivityObject $obj, array &$out)
 {
     assert($obj->type == ActivityObject::BOOKMARK);
     $bm = Bookmark::getByPK(array('uri' => $obj->id));
     $out['displayName'] = $bm->getTitle();
     $out['targetUrl'] = $bm->getUrl();
     return true;
 }