mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 15:59:29 +00:00
Added temporary replacing avatar
This commit is contained in:
parent
83b0982068
commit
e87ef113bb
@ -176,7 +176,7 @@ class User{
|
|||||||
$return['isPublicFriendList'] = $userInfos[0]['liste_amis_publique'];
|
$return['isPublicFriendList'] = $userInfos[0]['liste_amis_publique'];
|
||||||
|
|
||||||
//Add account image url
|
//Add account image url
|
||||||
$return['accountImage'] = path_user_data();
|
$return['accountImage'] = path_account_image("0Reverse.png");
|
||||||
|
|
||||||
//Only the user may get its mail address
|
//Only the user may get its mail address
|
||||||
if(userID === $userID)
|
if(userID === $userID)
|
||||||
|
@ -14,3 +14,13 @@
|
|||||||
function path_user_data($fileURI = ""){
|
function path_user_data($fileURI = ""){
|
||||||
return CS::get()->config->get("storage_url").$fileURI;
|
return CS::get()->config->get("storage_url").$fileURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get and return the URL path to a specified account image
|
||||||
|
*
|
||||||
|
* @param String $imageURI Optionnal, defines URI of the image
|
||||||
|
* @return String The full URL to the image account file
|
||||||
|
*/
|
||||||
|
function path_account_image($imageURI=""){
|
||||||
|
return path_user_data("avatars/".$imageURI);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user