diff options
author | Andrew Godwin | 2022-12-10 12:16:08 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-10 12:16:08 -0700 |
commit | 3595af7bd239f3843aff3ae06df8932cff23173d (patch) | |
tree | 84b8a0432fb89f253808be11275e2f78fc57bf42 /users/models | |
parent | 9a978786d4eac0139b5606e22c605450adbe7a12 (diff) | |
download | takahe-3595af7bd239f3843aff3ae06df8932cff23173d.tar.gz takahe-3595af7bd239f3843aff3ae06df8932cff23173d.tar.bz2 takahe-3595af7bd239f3843aff3ae06df8932cff23173d.zip |
Media proxy, caching and tuning docs
Fixes #67
Diffstat (limited to 'users/models')
-rw-r--r-- | users/models/identity.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/models/identity.py b/users/models/identity.py index c674bf4..21ac0fd 100644 --- a/users/models/identity.py +++ b/users/models/identity.py @@ -153,7 +153,7 @@ class Identity(StatorModel): if self.icon: return self.icon.url elif self.icon_uri: - return self.icon_uri + return f"/proxy/identity_icon/{self.pk}/" else: return static("img/unknown-icon-128.png") @@ -164,7 +164,7 @@ class Identity(StatorModel): if self.image: return self.image.url elif self.image_uri: - return self.image_uri + return f"/proxy/identity_image/{self.pk}/" @property def safe_summary(self): |