/**
* Save a bookmark from an activity
*
- * @param Profile $profile Profile to use as author
* @param Activity $activity Activity to save
+ * @param Profile $profile Profile to use as author
* @param array $options Options to pass to bookmark-saving code
*
* @return Notice resulting notice
return $object;
}
+ /**
+ * @fixme WARNING WARNING WARNING this opens a 'div' that is apparently closed by MicroAppPlugin
+ * @fixme that's probably wrong?
+ *
+ * @param Notice $notice
+ * @param HTMLOutputter $out
+ */
function showNotice($notice, $out)
{
+ $nb = Bookmark::getByNotice($notice);
+
$profile = $notice->getProfile();
$atts = $notice->attachments();
// Replies look like "for:" tags
- $replies = $nli->notice->getReplies();
- $tags = $nli->notice->getTags();
+ $replies = $notice->getReplies();
+ $tags = $notice->getTags();
if (!empty($replies) || !empty($tags)) {
'height' => AVATAR_MINI_SIZE,
'alt' => $profile->getBestName()));
- $out->raw(' ');
+ $out->raw(' '); // avoid for AJAX XML compatibility
+ $out->elementStart('span', 'vcard author'); // hack for belongsOnTimeline; JS needs to be able to find the author
$out->element('a',
- array('href' => $profile->profileurl,
+ array('class' => 'url',
+ 'href' => $profile->profileurl,
'title' => $profile->getBestName()),
$profile->nickname);
+ $out->elementEnd('span');
}
function entryForm($out)