From 741ccfdc4afacd2368ff4a5001dab474e635ccb8 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 19 Jan 2019 14:45:56 +0100 Subject: [PATCH 1/2] Don't use referrerpolicy with media proxy. --- src/components/attachment/attachment.js | 3 +++ src/components/attachment/attachment.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 97c4f283..cee5356d 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) }, diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 5eaa0d1d..b80300b4 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -10,7 +10,7 @@ Hide - + From 0ed18283521447ec19363bf809d645e613b498a4 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 19 Jan 2019 14:56:18 +0100 Subject: [PATCH 2/2] Linting. --- src/components/attachment/attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index cee5356d..18a03770 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -25,7 +25,7 @@ const Attachment = { }, computed: { referrerpolicy () { - return this.$store.state.instance.mediaProxyAvailable ? "" : "no-referrer" + return this.$store.state.instance.mediaProxyAvailable ? '' : 'no-referrer' }, type () { return fileTypeService.fileType(this.attachment.mimetype)