add profile to stream function

This commit is contained in:
Evan Prodromou 2011-03-22 18:15:53 -04:00
parent 26a4bd7dbf
commit 31e7d46a5b
1 changed files with 10 additions and 1 deletions

View File

@ -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) ||