Use the current logged-in use for home timeline
This commit is contained in:
		@@ -192,7 +192,13 @@ class ApiTimelineHomeAction extends ApiBareAuthAction
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        $notices = array();
 | 
					        $notices = array();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $stream = new InboxNoticeStream($this->user);
 | 
					        $profile = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (isset($this->auth_user)) {
 | 
				
			||||||
 | 
					            $profile = $this->auth_user->getProfile();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        $stream = new InboxNoticeStream($this->user, $profile);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        $notice = $stream->getNotices(($this->page-1) * $this->count,
 | 
					        $notice = $stream->getNotices(($this->page-1) * $this->count,
 | 
				
			||||||
                                      $this->count,
 | 
					                                      $this->count,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user