use InboxNoticeStream in AllmapAction in Mapstraction
This commit is contained in:
parent
684d0a386d
commit
45ba33e2ac
@ -48,11 +48,11 @@ class AllmapAction extends MapAction
|
||||
{
|
||||
if (parent::prepare($args)) {
|
||||
$cur = common_current_user();
|
||||
if (!empty($cur) && $cur->id == $this->user->id) {
|
||||
$this->notice = $this->user->noticeInbox(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
|
||||
} else {
|
||||
$this->notice = $this->user->noticesWithFriends(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
|
||||
}
|
||||
$stream = new InboxNoticeStream($this->user, $cur->getProfile());
|
||||
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
|
||||
NOTICES_PER_PAGE + 1,
|
||||
null,
|
||||
null);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user