replace call to protected Ostatus_profile method

This commit is contained in:
Evan Prodromou 2010-12-26 21:38:28 -08:00
parent bf75119b3c
commit 14113b267e
1 changed files with 15 additions and 2 deletions

View File

@ -505,8 +505,21 @@ class BookmarkPlugin extends Plugin
}
$replies = $activity->context->attention;
$options['groups'] = $author->filterReplies($author, $replies);
$options['replies'] = $replies;
$options['groups'] = array();
$options['replies'] = array();
foreach ($replies as $replyURI) {
$profile = Profile::fromURI($replyURI);
if (!empty($profile)) {
$options['replies'][] = $replyURI;
} else {
$group = User_group::staticGet('uri', $replyURI);
if (!empty($group)) {
$options['groups'][] = $replyURI;
}
}
}
// Maintain direct reply associations
// @fixme what about conversation ID?