mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Add missing Module\Photo route for contact avatar
This commit is contained in:
parent
f426a5bd98
commit
5112dd06f2
2 changed files with 11 additions and 5 deletions
|
@ -97,6 +97,11 @@ class Photo extends BaseModule
|
|||
$uid = intval(pathinfo($parameters['uid_ext'], PATHINFO_FILENAME));
|
||||
}
|
||||
|
||||
// Please refactor this for the love of everything that's good
|
||||
if (!empty($parameters['contact_id'])) {
|
||||
$uid = $parameters['contact_id'];
|
||||
}
|
||||
|
||||
$photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
|
||||
} else {
|
||||
$photoid = pathinfo($parameters['name'], PATHINFO_FILENAME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue