501 Not Implemented on timelines for remote users.

This commit is contained in:
Mikael Nordfeldth 2015-02-25 16:31:02 +01:00
parent b0e767eaf1
commit f7553d73a2

View File

@ -79,6 +79,10 @@ class ApiTimelineUserAction extends ApiBareAuthAction
$this->clientError(_('No such user.'), 404);
}
if (!$this->target->isLocal()) {
$this->serverError(_('Remote user timelines are not available here yet.'), 501);
}
$this->notices = $this->getNotices();
return true;