diff options
| author | lain <lain@soykaf.club> | 2019-01-19 14:45:56 +0100 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-01-19 14:45:56 +0100 |
| commit | 741ccfdc4afacd2368ff4a5001dab474e635ccb8 (patch) | |
| tree | 8b3dead81b08ee1e077122b5878db9f807f5ffb8 /src/components/attachment/attachment.js | |
| parent | d8512bf6eb263114561f61bc9e053497da5c69bf (diff) | |
Don't use referrerpolicy with media proxy.
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 3 |
1 files changed, 3 insertions, 0 deletions
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) }, |
