- } elseif (!($id = Contact::getIdForURL($parameters['name'], 0, false))) {
- DI::mstdnError()->RecordNotFound();
+ } elseif (!($id = Contact::getIdForURL($this->parameters['name'], 0, false))) {
+ $this->logErrorAndJsonExit(404, $this->errorFactory->RecordNotFound());