Closed dragunoff closed 3 years ago
For anyone looking to test this, here is a docker-compose.yml that I used to develop this - you can use it to quickly get a local environment up: https://gist.github.com/dragunoff/3f956bbd0b83ad70deeaae41a9c67928
ping @pchote for review
You could also craft the url without using the horrible phpBB methods. See https://github.com/OpenRA/openrauseraccounts/commit/5806e2abd86d2835bbb5d59481e64eb657e1729e for my dumb but working version.
Closing in favour of #49.
Expose the avatar url in the MiniYaml output of the
info
endpoint. phpBB doesn't make it easy to obtain the URL directly so I went with a simple regex solution that scrapes the url from thesrc
attribute of an<img/>
tag. The output contains the src, width, height and type of the avatar. Since phpBB supports different types of avatars, theType
node may be useful by giving a hint on how to handle the url inSrc
.Closes #46