diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a1e384..6dffc84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added + +- Enabled audio and video uploads. + ### Changed - Save latest ethereum block number to database instead of file. diff --git a/src/mastodon_api/media/views.rs b/src/mastodon_api/media/views.rs index 7b55799..746cc49 100644 --- a/src/mastodon_api/media/views.rs +++ b/src/mastodon_api/media/views.rs @@ -26,7 +26,7 @@ async fn create_attachment_view( &attachment_data.file, attachment_data.media_type.clone(), &config.media_dir(), - Some("image/"), + None, )?; let db_attachment = create_attachment( db_client, diff --git a/src/mastodon_api/uploads.rs b/src/mastodon_api/uploads.rs index 7efc0a9..5629f6f 100644 --- a/src/mastodon_api/uploads.rs +++ b/src/mastodon_api/uploads.rs @@ -37,7 +37,7 @@ pub fn save_b64_file( b64data: &str, maybe_media_type: Option, output_dir: &Path, - maybe_expected_prefix: Option<&str>, + maybe_expected_prefix: Option<&str>, // deprecated ) -> Result<(String, usize, String), UploadError> { let file_data = base64::decode(b64data)?; let file_size = file_data.len();