embassynetwork / modernomad

manage multi-use community houses: members, guests, events.
https://embassynetwork.com/
GNU Affero General Public License v3.0
132 stars 60 forks source link

Hostname wrong in user's image URL in email #503

Open mozboz opened 5 years ago

mozboz commented 5 years ago

I just received the automated email about guests arriving today, and there's an inline image for the person arriving. The image URL in the email looks like:

http://cache/images/avatars/lu-davidson/06995205-8eb3-420d-843f-49bd17364b8d/831a681f8fa9caa4d9a772a7d453e667.jpg

The image URL for this user's image taken from their profile on the live MN site is:

https://media.embassynetwork.com/public/avatars/lu-davidson/06995205-8eb3-420d-843f-49bd17364b8d.png

Note the actual full URL for the image in the gmail email is below and I've made the assumption that the part before the '#' is added by Google to proxy/cache the image.

https://ci5.googleusercontent.com/proxy/ad68pBhgHUwu4SKIH7M8HbRSjZ9aL44d-3htbMOGW_7HtcWmXCcjetPwW28SFhcSxMRrMw1W81ghvesQoypZnKGKzt_VxXHics-kr11_iCyEGhDsam2PxAE7n9Ym4x6A5KTrYTCb3-qzZZaKkYmm0s2-fjuR4ohU-YWC2b--KUWuAuW8=s0-d-e1-ft#http://CACHE/images/avatars/lu-davidson/06995205-8eb3-420d-843f-49bd17364b8d/831a681f8fa9caa4d9a772a7d453e667.jpg

jessykate commented 5 years ago

Heh jinx I just posted this too! Thanks!

We fixed a bunch of these last week but must have missed this one. Will fix :)