* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class ConversationNoticeStream extends ScopingNoticeStream
{
- function __construct($id)
+ function __construct($id, $profile = -1)
{
+ if (is_int($profile) && $profile == -1) {
+ $profile = Profile::current();
+ }
+
parent::__construct(new CachingNoticeStream(new RawConversationNoticeStream($id),
- 'notice:conversation_ids:'.$id));
+ 'notice:conversation_ids:'.$id),
+ $profile);
}
}
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class RawConversationNoticeStream extends NoticeStream
{
protected $id;
$this->id = $id;
}
- function getNoticeIds($offset=0, $limit=20, $since_id=0, $max_id=0)
+ function getNoticeIds($offset, $limit, $since_id, $max_id)
{
$notice = new Notice();
}
}
- $notice->free();
- $notice = NULL;
-
return $ids;
}
}
\ No newline at end of file