From: Evan Prodromou Date: Tue, 22 Mar 2011 22:15:53 +0000 (-0400) Subject: add profile to stream function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31e7d46a5b03c9082d38beed413b4af91a050a63;p=quix0rs-gnu-social.git add profile to stream function --- diff --git a/classes/Notice.php b/classes/Notice.php index 03ce36640b..4e688218f8 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1546,8 +1546,17 @@ class Notice extends Memcached_DataObject } } - function stream($fn, $args, $cachekey, $offset=0, $limit=20, $since_id=0, $max_id=0) + function stream($fn, $args, $cachekey, $offset=0, $limit=20, $since_id=0, $max_id=0, $profile=0) { + if ($profile === 0) { + $user = common_current_user(); + if (empty($user)) { + $profile = null; + } else { + $profile = $user->getProfile(); + } + } + $cache = Cache::instance(); if (empty($cache) ||