diff options
| author | shpuld <shp@cock.li> | 2019-01-20 15:52:35 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-01-20 15:52:35 +0200 |
| commit | 8761e039d04ff26944c87339ef55d2951a42696c (patch) | |
| tree | 69a1d49f724d99fb49c72bd7d2f6bb1a73e8f066 /src/components/attachment | |
| parent | 485a061287149fe0ff5c4a188d21d775ff271f6d (diff) | |
| parent | 7651290e2be72ed35d7582757251eb151fdce953 (diff) | |
Merge dev fix conflicts
Diffstat (limited to 'src/components/attachment')
| -rw-r--r-- | src/components/attachment/attachment.js | 3 | ||||
| -rw-r--r-- | src/components/attachment/attachment.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 2698fb67..d16e5086 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -26,6 +26,9 @@ const Attachment = { usePlaceHolder () { return this.size === 'hide' || this.type === 'unknown' }, + 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 74993fd9..ad5120c0 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -19,7 +19,7 @@ :href="attachment.url" target="_blank" :title="attachment.description" > - <StillImage :class="{'small': isSmall}" referrerpolicy="no-referrer" :mimetype="attachment.mimetype" :src="attachment.large_thumb_url || attachment.url"/> + <StillImage :class="{'small': isSmall}" referrerpolicy="referrerPolicy" :mimetype="attachment.mimetype" :src="attachment.large_thumb_url || attachment.url"/> </a> <a class="video-container" |
