aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-02-11 23:09:15 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-02-11 23:09:15 +0000
commit84ebae8ed36390f62ccda653d4fb9d8aad1482a2 (patch)
tree70fb486e4b31b029c8dbcb89f87acf154275f905 /src/components/status/status.js
parent60446c56a5c8d4b4d669fbd4803e77ce686daac9 (diff)
parent96dc297babd5797b9307af8676719c2eb8cd80e2 (diff)
Merge branch 'develop' into 'themes-accent'
# Conflicts: # src/components/emoji_reactions/emoji_reactions.vue
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 81b57667..fc5956ec 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -256,6 +256,16 @@ const Status = {
file => !fileType.fileMatchesSomeType(this.galleryTypes, file)
)
},
+ hasImageAttachments () {
+ return this.status.attachments.some(
+ file => fileType.fileType(file.mimetype) === 'image'
+ )
+ },
+ hasVideoAttachments () {
+ return this.status.attachments.some(
+ file => fileType.fileType(file.mimetype) === 'video'
+ )
+ },
maxThumbnails () {
return this.mergedConfig.maxThumbnails
},