aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2019-01-20 10:26:20 +0000
committerlambda <pleromagit@rogerbraun.net>2019-01-20 10:26:20 +0000
commit7651290e2be72ed35d7582757251eb151fdce953 (patch)
treea10552fa0cf5a917d8ef16feb0379f8da9de382d /src/components/attachment/attachment.js
parentd8512bf6eb263114561f61bc9e053497da5c69bf (diff)
parent0ed18283521447ec19363bf809d645e613b498a4 (diff)
Merge branch 'referrer-caching-fix' into 'develop'
Don't use referrerpolicy with media proxy. See merge request pleroma/pleroma-fe!467
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 97c4f283..18a03770 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -24,6 +24,9 @@ const Attachment = {
StillImage
},
computed: {
+ referrerpolicy () {
+ return this.$store.state.instance.mediaProxyAvailable ? '' : 'no-referrer'
+ },
type () {
return fileTypeService.fileType(this.attachment.mimetype)
},