forked from GNUsocial/gnu-social
replace call to protected Ostatus_profile method
This commit is contained in:
parent
bf75119b3c
commit
14113b267e
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user