How to get profile album using REST API?
Hello,
I want to rewrite the "view-profile-banner" component cause we want to make a custom avatar image when a new avatar image is uploaded but not aproved. Normaly, in messages an unproved image is replaced by a "Aproval-Image" and we want the same behaviour for the avatar image. After contacting the support they told me this is not working out of the box.
Then I did some research and I found the following solution:
1. Grab all unaproved images with the LiQL (SELECT * FROM images WHERE owner.id = 'XXX' AND visibility = 'unapproved')
2. Itereate them and grap the album id.
3. Read all properties from the actual album with LiQL (SELECT * FROM albums WHERE id = 'XXX')
This is working fine but now I have to verify wether the actual album is the profile album or not. I can not use the title as an identifier cause a moderator can rename the album title in the admin area. Any other hints on check wether this is the profile album or not? Or any better hint on integrating the requirement?
Regards,
Michael