Enable audio and video uploads

This commit is contained in:
silverpill 2023-03-12 20:31:35 +00:00
parent 06609b2d5d
commit e3beb705eb
2 changed files with 15 additions and 2 deletions

View file

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased] ## [Unreleased]
### Added
- Enabled audio and video uploads.
## [1.16.0] - 2023-03-08 ## [1.16.0] - 2023-03-08
### Added ### Added

View file

@ -37,7 +37,8 @@
> >
<img :src="require('@/assets/feather/x.svg')"> <img :src="require('@/assets/feather/x.svg')">
</button> </button>
<img :src="attachment.url"> <img v-if="attachment.type === 'image'" :src="attachment.url">
<div v-else class="placeholder">{{ attachment.url }}</div>
</div> </div>
</div> </div>
<div class="toolbar"> <div class="toolbar">
@ -243,7 +244,6 @@ function getAcceptedMediaTypes(): string {
return "" return ""
} }
return instance.configuration.media_attachments.supported_mime_types return instance.configuration.media_attachments.supported_mime_types
.filter(mediaType => mediaType.startsWith("image/"))
.join(",") .join(",")
} }
@ -413,6 +413,15 @@ $line-height: 1.5;
> img { > img {
width: 100%; width: 100%;
} }
.placeholder {
background-color: $background-color;
box-sizing: border-box;
padding: $block-inner-padding;
text-align: center;
width: 100%;
word-wrap: break-word;
}
} }
.toolbar { .toolbar {