diff options
Diffstat (limited to 'src/components/status_content/status_content.js')
| -rw-r--r-- | src/components/status_content/status_content.js | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 51895ef6..49f9d7f8 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -58,24 +58,6 @@ const StatusContent = { } return 'normal' }, - galleryTypes () { - if (this.attachmentSize === 'hide') { - return [] - } - return this.mergedConfig.playVideosInModal - ? ['image', 'video'] - : ['image'] - }, - galleryAttachments () { - return this.status.attachments.filter( - file => fileType.fileMatchesSomeType(this.galleryTypes, file) - ) - }, - nonGalleryAttachments () { - return this.status.attachments.filter( - file => !fileType.fileMatchesSomeType(this.galleryTypes, file) - ) - }, maxThumbnails () { return this.mergedConfig.maxThumbnails }, @@ -93,7 +75,7 @@ const StatusContent = { }, methods: { setMedia () { - const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments + const attachments = this.status.attachments return () => this.$store.dispatch('setMedia', attachments) } } |
