From 3595af7bd239f3843aff3ae06df8932cff23173d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 10 Dec 2022 12:16:08 -0700 Subject: Media proxy, caching and tuning docs Fixes #67 --- activities/models/post_attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activities/models') 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 ### -- cgit v1.2.3