- $this->page = (int)$this->arg('page', 1);
- $this->count = (int)$this->arg('count', 20);
- $this->max_id = (int)$this->arg('max_id', 0);
- $this->since_id = (int)$this->arg('since_id', 0);
- $this->since = $this->arg('since');
-
- $this->user = $this->getTargetUser($id);
+ //TODO: Make sure this doesn't leak unwantedly for federated users
+ $this->target = $this->getTargetProfile(null);
+
+ if (!($this->target instanceof Profile)) {
+ // TRANS: Client error displayed when user not found for an action.
+ $this->clientError(_('No such user.'), 404);
+ }
+