aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2017-11-20 13:27:45 +0200
committershpuld <shp@cock.li>2017-11-20 13:27:45 +0200
commit280758f8674be4f9a23223ffa47b5805380bfa4f (patch)
tree234a2ebc1ce2bb7d01801a803124abf760a9c562 /src/components/attachment/attachment.js
parent092848b32b1abb165ce43e13781b7912a3e73a0c (diff)
Hide unknown type attachments, polish the upload preview styling
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index de551611..8a2a3826 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -24,7 +24,7 @@ const Attachment = {
return this.nsfw && this.hideNsfwLocal && !this.showHidden
},
isEmpty () {
- return this.type === 'html' && !this.attachment.oembed
+ return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown'
}
},
methods: {