mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
We are basically adding a check for url's to be external (belonging to some 3rd party web site hosting the image) or be one of the user uploaded files. User uploaded files are served by a separate endpoint which is /user_uploads/. Any other local url such as /user_avatars/ or /static/ should never be sent to thumbor for thumbnailing. Not sending /user_avatars/ to thumbor for thumbnailing makes sense because they are already properly thumbnailed and stored properly. /static/ urls host very few images we use for demo and can be safely be excluded from thumbnailing.
75 KiB
75 KiB