foreach ($attentions as $attn) {
$class = $attn->isGroup() ? 'group' : 'account';
- $this->pa[] = array('href' => $attn->profileurl,
+ $profileurl = $attn->getUri();
+ if (common_valid_http_url($profileurl)) {
+ $class .= ' u-uid';
+ } else {
+ $profileurl = $attn->getUrl();
+ }
+ $this->pa[] = array('href' => $profileurl,
'title' => $attn->getNickname(),
- 'class' => "addressee {$class}",
+ 'class' => "addressee {$class} p-name u-url",
'text' => $attn->getStreamName());
}
$xs = new XMLStringer(false);
$attrs = array('href' => $mention['url'],
- 'class' => 'h-card '.$mention['type']);
+ 'class' => 'h-card u-url p-nickname '.$mention['type']);
if (!empty($mention['title'])) {
$attrs['title'] = $mention['title'];