Remove photo user id fallback from 2021

- Remove deprecated /photos/{nickname} fallback routes
- The contact id fallback is a lie, there's no replacement feature
This commit is contained in:
Hypolite Petovan 2024-02-22 22:57:20 -05:00
parent e16b6ee6e1
commit a25dbf839a
2 changed files with 0 additions and 16 deletions

View file

@ -100,7 +100,6 @@ class Photo extends BaseApi
$id = $account['id'];
}
// Contact Id Fallback, to remove after version 2021.12
if (isset($this->parameters['contact_id'])) {
$id = intval($this->parameters['contact_id']);
}
@ -115,12 +114,6 @@ class Photo extends BaseApi
$id = $user['uid'];
}
// User Id Fallback, to remove after version 2021.12
if (!empty($this->parameters['uid_ext'])) {
$id = intval(pathinfo($this->parameters['uid_ext'], PATHINFO_FILENAME));
}
// Please refactor this for the love of everything that's good
if (isset($this->parameters['id'])) {
$id = $this->parameters['id'];
}