From 14113b267eacc09e6889e45a4c3f8b4a32926282 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 26 Dec 2010 21:38:28 -0800 Subject: [PATCH] replace call to protected Ostatus_profile method --- plugins/Bookmark/BookmarkPlugin.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index f18c60c586..99cfc1284e 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -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?