aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-02-10 21:09:36 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-02-10 21:09:36 +0300
commita52ae1ebeb0e69c4484122be8fca7e68b030db32 (patch)
tree35ab07dcc52df64d2a5590614212a0e1cdf4bf65 /src/components/status/status.js
parent64c180c8388afd229ffbcef745b6a81afa0d0056 (diff)
parent17b6d8ddb8a9a1637fd88e017170b973b97381da (diff)
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into develop
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
},