diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-17 16:29:46 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-17 16:29:46 +0300 |
| commit | e654fead23ebb457f81e8642c65e1f3e98ee0027 (patch) | |
| tree | 33d190972290d6f18e91b1fc9d7ccd071ddfad30 /src/components/status_content/status_content.js | |
| parent | 9c4957268de656acdfceae526f18ab5250808bec (diff) | |
refactored attachments and gallery. All attachments now are in gallery.
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) } } |
