qinglau
11 years agoMentor
Check whether users have upload avatar
Hello Guys,
I am trying to build a function to check whether users have upload their own avatar img. Is there a way to do that? Currently, I am using REST API to grab user avatar URL
I noticed that the avatar URL are difference between the stock collection and upload one.
In the stock avatar URL: 3delicious/avatar-collection/KPN_Guests/avatar-display-size/message In the custom URL: t5/image/serverpage/image-id/382i6D56CCA421653E26/image-dimensions/64x36?v=mpbl-1
The avatar URL of standard avatar sets contain the "avatar-collection" , but the avatar URL of customer upload one does not have.
I am thinking to use FreeMarker string compare class to check "avatar-collection". Is there other better way to do ? thank you
Cheers,
Qing