We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 14113b26 authored by Evan Prodromou's avatar Evan Prodromou

replace call to protected Ostatus_profile method

parent bf75119b
...@@ -505,8 +505,21 @@ class BookmarkPlugin extends Plugin ...@@ -505,8 +505,21 @@ class BookmarkPlugin extends Plugin
} }
$replies = $activity->context->attention; $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 // Maintain direct reply associations
// @fixme what about conversation ID? // @fixme what about conversation ID?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment