Always compute absolute URL of uploaded avatars
Review Request #8843 — Created March 25, 2017 and submitted
Previously we were caching the location of uploaded avatars. However, if
a consumer switched storage backends (e.g., local host to S3), the
absolute URL would not update. Now we always compute the absolute URL of
avatars.
Tested with /r/8858/.
Description | From | Last Updated |
---|---|---|
In other places (for example, ImageReviewUI.get_comment_thumbnail), we check to see if the URL returned by the storage backend includes a … |
david |
-
-
djblets/avatars/services/file_upload.py (Diff revision 1) In other places (for example,
ImageReviewUI.get_comment_thumbnail
), we check to see if the URL returned by the storage backend includes a netloc, and if not, we callbuild_server_url
. If we at all anticipate including avatars in things like e-mails, we should do that here, too.
Testing Done: |
|
||||||
---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+2 -2) |