use inboxnoticestream in API
This commit is contained in:
parent
84d848f78c
commit
328373e29c
|
@ -289,15 +289,12 @@ class ApiTimelineFriendsAction extends ApiBareAuthAction
|
||||||
{
|
{
|
||||||
$notices = array();
|
$notices = array();
|
||||||
|
|
||||||
if (!empty($this->auth_user) && $this->auth_user->id == $this->user->id) {
|
$stream = new InboxNoticeStream($this->user);
|
||||||
$notice = $this->user->ownFriendsTimeline(($this->page-1) * $this->count,
|
|
||||||
$this->count, $this->since_id,
|
$notice = $stream->getNotices(($this->page-1) * $this->count,
|
||||||
|
$this->count,
|
||||||
|
$this->since_id,
|
||||||
$this->max_id);
|
$this->max_id);
|
||||||
} else {
|
|
||||||
$notice = $this->user->friendsTimeline(($this->page-1) * $this->count,
|
|
||||||
$this->count, $this->since_id,
|
|
||||||
$this->max_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
while ($notice->fetch()) {
|
while ($notice->fetch()) {
|
||||||
$notices[] = clone($notice);
|
$notices[] = clone($notice);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user