aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/activity.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/activity.php')
-rw-r--r--engine/lib/activity.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/engine/lib/activity.php b/engine/lib/activity.php
index 30c81cb96..51b083531 100644
--- a/engine/lib/activity.php
+++ b/engine/lib/activity.php
@@ -143,8 +143,14 @@ function get_activity_stream_data($limit = 10, $offset = 0, $type = "", $subtype
if ($owner_relationship) {
$friendsarray = "";
- if ($friends = get_entities_from_relationship($owner_relationship, $owner_guid[0],
- FALSE, "user", $subtype, 0, "time_created desc", 9999)) {
+ if ($friends = elgg_get_entities_from_relationship(array(
+ 'relationship' => $owner_relationship,
+ 'relationship_guid' => $owner_guid[0],
+ 'inverse_relationship' => FALSE,
+ 'types' => 'user',
+ 'subtypes' => $subtype,
+ 'limit' => 9999))
+ ) {
$friendsarray = array();
foreach($friends as $friend) {
@@ -160,4 +166,4 @@ function get_activity_stream_data($limit = 10, $offset = 0, $type = "", $subtype
WHERE 1 $user AND ($obj_query)
ORDER BY sl.time_created desc limit $offset, $limit";
return get_data($query);
-} \ No newline at end of file
+}