summaryrefslogtreecommitdiffstats
path: root/activities/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-10 12:16:08 -0700
committerAndrew Godwin2022-12-10 12:16:08 -0700
commit3595af7bd239f3843aff3ae06df8932cff23173d (patch)
tree84b8a0432fb89f253808be11275e2f78fc57bf42 /activities/models
parent9a978786d4eac0139b5606e22c605450adbe7a12 (diff)
downloadtakahe-3595af7bd239f3843aff3ae06df8932cff23173d.tar.gz
takahe-3595af7bd239f3843aff3ae06df8932cff23173d.tar.bz2
takahe-3595af7bd239f3843aff3ae06df8932cff23173d.zip
Media proxy, caching and tuning docs
Fixes #67
Diffstat (limited to 'activities/models')
-rw-r--r--activities/models/post_attachment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/activities/models/post_attachment.py b/activities/models/post_attachment.py
index 7feaba5..932ae65 100644
--- a/activities/models/post_attachment.py
+++ b/activities/models/post_attachment.py
@@ -77,13 +77,13 @@ class PostAttachment(StatorModel):
elif self.file:
return self.file.url
else:
- return self.remote_url
+ return f"/proxy/post_attachment/{self.pk}/"
def full_url(self):
if self.file:
return self.file.url
else:
- return self.remote_url
+ return f"/proxy/post_attachment/{self.pk}/"
### ActivityPub ###