From: Evan Prodromou Date: Mon, 27 Dec 2010 05:38:28 +0000 (-0800) Subject: replace call to protected Ostatus_profile method X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=14113b267eacc09e6889e45a4c3f8b4a32926282;p=quix0rs-gnu-social.git replace call to protected Ostatus_profile method --- 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?